Exodus 22:15

Amplified Bible (AMP)
But if the owner is with it [when the damage is done], the borrower shall not make restitution. If it was hired, the damage is included in [the price of] its fee.

Various Laws

Read Exodus 22:15 in other translations