Exodus 21:33-36 World English Bible (WEB)
33 “If a man opens a pit, or if a man digs a pit and doesn’t cover it, and a bull or a donkey falls into it, 34 the owner of the pit shall make it good. He shall give money to its owner, and the dead animal shall be his.
35 “If one man’s bull injures another’s, so that it dies, then they shall sell the live bull, and divide its price; and they shall also divide the dead animal. 36 Or if it is known that the bull was in the habit of goring in the past, and its owner has not kept it in, he shall surely pay bull for bull, and the dead animal shall be his own.
Exodus 21:33-36 New International Version (NIV)
33 “If anyone uncovers a pit or digs one and fails to cover it and an ox or a donkey falls into it, 34 the one who opened the pit must pay the owner for the loss and take the dead animal in exchange.
35 “If anyone’s bull injures someone else’s bull and it dies, the two parties are to sell the live one and divide both the money and the dead animal equally. 36 However, if it was known that the bull had the habit of goring, yet the owner did not keep it penned up, the owner must pay, animal for animal, and take the dead animal in exchange.