Exodus 21:34 NIV

34 the one who opened the pit must pay the owner for the loss and take the dead animal in exchange.