Exodus 22:2

Amplified Bible (AMP)
“If a thief is caught breaking in [after dark] and is struck [by the owner] so that he dies, there shall be no bloodguilt for him.

Read Exodus 22:2 in other translations