Abu Hurairah reported,

A man came to the Messenger of Allah ﷺ and asked, "Messenger of Allah, what do you think if a man comes intending to take my property?"He replied, "Then do not give him your property."The man asked, "What if he fights me?"He replied, "Fight him back."The man asked, "What if he kills me?"He replied, "Then you are a martyr."The man asked, "What if I kill him?"He replied, "He is in the Fire."

Azami 8110

Sahih

عن أبي هريرة قال

جاء رجل إلى رسول الله ﷺ فقال: يا رسول الله أرأيت إن جاء رجل يريد أخذ مالي؟ قال: فلا تعطه مالك. قال: أرأيت إن قاتلني؟ قال: قاتله. قال: أرأيت إن قتلني؟ قال: فأنت شهيد. قال: أرأيت إن قتلته؟ قال: هو في النار.

الأعظمي 8110صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Martyrs and the rulings on martyrdom
Section
Martyrs other than those killed in the cause of Allah
Numbering
Jami al-Kamil 8110 (2nd edition)
Azami 8110