Exodus 21:33-36
English Standard Version
Chapter 21
33"When a man opens a pit, or when a man digs a pit and does not cover it, and an ox or a donkey falls into it, 34the owner of the pit shall make restoration. He shall give money to its owner, and the dead beast shall be his.
35"When one man 's ox butts another 's, so that it dies, then they shall sell the live ox and share its price, and the dead beast also they shall share.
36Or if it is known that the ox has been accustomed to gore in the past, and its owner has not kept it in, he shall repay ox for ox, and the dead beast shall be his.