"If a man uncovers a pit1 or digs one and fails to cover it and an ox or a donkey falls into it,
References for Exodus 21:33
the owner of the pit must pay for the loss; he must pay its owner, and the dead animal will be his.
"If a man's bull injures the bull of another and it dies, they are to sell the live one and divide both the money and the dead animal equally.
However, if it was known that the bull had the habit of goring, yet the owner did not keep it penned up,2 the owner must pay, animal for animal, and the dead animal will be his.
References for Exodus 21:36