Exodus 22:2

If a thief will have been discovered breaking into a house, or digging under it, and he has received a mortal wound, he who struck him down will not be guilty of blood

Other versions

King James Version

If a thief be found breaking up, and be smitten that he die, there shall no blood be shed for him.

English Standard Version

"If a thief is found breaking in and is struck so that he dies, there shall be no bloodguilt for him,

New International Version

"If a thief is caught breaking in and is struck so that he dies, the defender is not guilty of bloodshed;