Exodus 21:34

New International Version Bible (NIV)
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