Exodus 22:2-3

Thomson(i) 2 If a thief be found in the act of breaking in and be struck and die, he who struck him is not liable to death; 3 but if the sun was risen upon him he is liable and may be put to death. If a thief hath no property, let him be sold for the theft.