אִם־בַּמַּחְתֶּ֛רֶת יִמָּצֵ֥א הַגַּנָּ֖ב וְהֻכָּ֣ה וָמֵ֑ת אֵ֥ין ל֖וֹ דָּמִֽים׃ אִם־זָרְחָ֥ה הַשֶּׁ֛מֶשׁ עָלָ֖יו דָּמִ֣ים ל֑וֹ ...׃
If the thief is seized while tunneling, and he is beaten to death, there is no bloodguilt in his case. If the sun has risen on him, there is bloodguilt in that case...
What is the law regarding a case where one is not sure about the intruder's intentions?
אם במחתרת ימצא הגנב. כלומר אין המכהו נחשב כשופך דמים שהרי כמו אנוס הוא שאין אדם יכול להעמיד עצמו על ממונו וזה נחשב כמו רודף כמו שאמרו רבותינו דדעתו שאם יעמוד אדם נגדו שימיתנו ובא להרגך השכם להרגו:
אם זרחה השמש. שיצא מן המחתרת לאויר העולם מקום זריחת השמש:
דמים לו. ואם הרגו נחשב עליו כרוצח ושופך דם דלא הותר לו רק בשעת חימום במחתרת ומשום הכי חייב אם המיתו ואין לו עליו רק תשלומין:
if the thief is seized while tunneling: which is to say that the homeowner is not judged as a murderer, rather as someone in a forced situation, for we cannot expect a person to stand by as his possessions are taken. This is comparable to a case of a Rodeif where, according to our tradition, if a person is attacked by a potential killer that person may kill that attacker first.
If the sun has risen on him: That is to say that the thief has left the person's home and is now outside in the sunlight.
there is bloodguilt in that case: And if the homeowner kills the thief in that case he is judged as a murderer, being that the Torah only gave the homeowner permission while he was enraged at the thief being in his home. Therefore, the homeowner would be guilty if he kills the thief and the thief would only be responsible for paying for any stolen items.