Exodus 21:29-36

21:29 But if the ox had the habit of goring, and its owner was warned, and he did not take the necessary precautions, and then it killed a man or a woman, the ox must be stoned and the man must be put to death. 21:30 If a ransom is set for him, then he must pay the redemption for his life according to whatever amount was set for him. 21:31 If the ox gores a son or a daughter, the owner will be dealt with according to this rule. 21:32 If the ox gores a male servant or a female servant, the owner must pay thirty shekels of silver, and the ox must be stoned.

21:33 “If a man opens a pit or if a man digs a pit and does not cover it, and an ox or a donkey falls into it, 21:34 the owner of the pit must repay the loss. He must give money to its owner, and the dead animal will become his. 21:35 If the ox of one man injures the ox of his neighbor so that it dies, then they will sell the live ox and divide its proceeds, and they will also divide the dead ox. 21:36 Or if it is known that the ox had the habit of goring, and its owner did not take the necessary precautions, he must surely pay ox for ox, and the dead animal will become his.