Exodus 22:2
If a thief is caught breaking in and is beaten to death, no one shall be guilty of bloodshed.
Berean Standard Bible
If a thief be found breaking up, and be smitten that he die, there shall no blood be shed for him.
If the thief is found breaking in, and is struck so that he dies, there shall be no guilt of bloodshed for him.