If the thief is found breaking in, and he is struck so that he dies, there shall be no guilt for his bloodshed.
Exodus 22:2
Surrounding context
22:1 "If a man steals an ox or a sheep, and slaughters it or sells it, he shall restore five oxen for an ox and four sheep for a sheep.
22:2 If the thief is found breaking in, and he is struck so that he dies, there shall be no guilt for his bloodshed.
22:3 If the sun has risen on him, there shall be guilt for his bloodshed. He should make full restitution; if he has nothing, then he shall be sold for his theft.