ESV: the owner of the pit shall make restoration. He shall give money to its owner, and the dead beast shall be his.
NIV: the one who opened the pit must pay the owner for the loss and take the dead animal in exchange.
NASB: the owner of the pit shall make restitution; he shall give money to its owner, and the dead animal shall become his.
CSB: the owner of the pit must give compensation; he must pay to its owner, but the dead animal will become his.
NLT: The owner of the pit must pay full compensation to the owner of the animal, but then he gets to keep the dead animal.
KJV: The owner of the pit shall make it good, and give money unto the owner of them; and the dead beast shall be his.
NKJV: the owner of the pit shall make it good; he shall give money to their owner, but the dead animal shall be his.