كتاب الإيمان
1  
The Book of Faith
(62)
Chapter: The evidence that the blood of one who aims to seize other people's wealth without right may be shed, if he is killed he will be in the fire, and the one who is killed defending his property is a martyr
(62)
باب الدَّلِيلِ عَلَى أَنَّ مَنْ قَصَدَ أَخْذَ مَالِ غَيْرِهِ بِغَيْرِ حَقٍّ كَانَ الْقَاصِدُ مُهْدَرَ الدَّمِ فِي حَقِّهِ وَإِنْ قُتِلَ كَانَ فِي النَّارِ وَأَنَّ مَنْ قُتِلَ دُونَ مَالِهِ فَهُوَ شَهِيدٌ
Sahih Muslim 140

Abu Huraira reported:

A person came to the Messenger of Allah (ﷺ) and said: Messenger of Allah, what do you think if a man comes to me in order to appropriate my possession? He (the Holy Prophet) said: Don't surrender your possession to him. He (the inquirer) said: If he fights me? He (the Holy Prophet) remarked: Then fight (with him). He (the inquirer) again said: What do you think if I am killed? He (the Holy Prophet) observed: You would be a martyr. He (the inquirer) said: What do you think of him (Messenger of Allah) If I kill him. He (the Holy Prophet) said: he would be in the Fire.
حَدَّثَنِي أَبُو كُرَيْبٍ، مُحَمَّدُ بْنُ الْعَلاَءِ حَدَّثَنَا خَالِدٌ، - يَعْنِي ابْنَ مَخْلَدٍ - حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، عَنِ الْعَلاَءِ بْنِ عَبْدِ الرَّحْمَنِ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ جَاءَ رَجُلٌ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ أَرَأَيْتَ إِنْ جَاءَ رَجُلٌ يُرِيدُ أَخْذَ مَالِي قَالَ ‏"‏ فَلاَ تُعْطِهِ مَالَكَ ‏"‏ ‏.‏ قَالَ أَرَأَيْتَ إِنْ قَاتَلَنِي قَالَ ‏"‏ قَاتِلْهُ ‏"‏ ‏.‏ قَالَ أَرَأَيْتَ إِنْ قَتَلَنِي قَالَ ‏"‏ فَأَنْتَ شَهِيدٌ ‏"‏ ‏.‏ قَالَ أَرَأَيْتَ إِنْ قَتَلْتُهُ قَالَ ‏"‏ هُوَ فِي النَّارِ ‏"‏ ‏.‏
Reference : Sahih Muslim 140
In-book reference : Book 1, Hadith 267
USC-MSA web (English) reference : Book 1, Hadith 259
  (deprecated numbering scheme)