Verse study
Exodus 22:2
2 If the thief is found breaking in, and is struck so that he dies, there shall be no guilt of bloodshed for him.
Meaning & historical commentary
In a world without locks, many houses were little more than mud-brick walls and a flat roof, so a thief tunneling or forcing in at night was a real danger to the whole household. The law sorts such a case by timing: if the homeowner kills an intruder in the dark, no bloodguilt attaches, because the threat to life was not yet known to be lethal. The ancient reader would have understood that the sun marks the boundary between a night assault, where fear of violence justifies force, and daylight, where the thief could be identified and dealt with through restitution.