Exodus 22:2-3

EJ2000(i) 2 If a thief is found breaking into a house and is smitten so he dies, he that killed him shall not be guilty of his blood. 3 If the sun is risen upon him, he that killed him is guilty of his blood; the thief should make full restitution; if he has nothing, then he shall be sold for his theft.