Exodus 21:34 MSG

34 the owner of the pit must pay whatever the animal is worth to its owner but can keep the dead animal.