Exodus 21:34

New International Version - UK Bible (NIVUK)
the one who opened the pit must pay the owner for the loss and take the dead animal in exchange.

Read Exodus 21:34 in other translations