Mishkat
al-Masabih
مشكاة المصابيح
The Rites of Pilgrimage
كتاب المناسك
Chapter 16c: The Sacred Territory of Medina. May God most high protect it - Section 3
باب حرم المدينة حرسها الله تعالى - الفصل الثالث
Mishkat al-Masabih 2757
Yahya b. Sa'id said that Allah's Messenger ﷺ was sitting when a grave was being dug in Medina. A man looked down into the grave and said, "What a bad-resting-place for a believer!" Allah's Messenger ﷺ thereupon retorted, "What a bad thing you have said!" and the man replied, "I did not mean that; I meant that being killed in Allah’s path [is more excellent]." Allah's Messenger ﷺ said, "Nothing compares with being killed in Allah’s path. There is no other region in the earth in which I would prefer my grave to be," saying it three times. Malik transmitted it in mursal form.
لإرساله وَعَنْ يَحْيَى بْنِ سَعِيدٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ جَالِسًا وَقَبْرٌ يُحْفَرُ بِالْمَدِينَةِ فَاطَّلَعَ رَجُلٌ فِي الْقَبْرِ فَقَالَ: بِئْسَ مَضْجَعِ الْمُؤْمِنِ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «بئس مَا قُلْتَ» قَالَ الرَّجُلُ إِنِّي لَمْ أُرِدْ هَذَا إِنَّمَا أَرَدْتُ الْقَتْلَ فِي سَبِيلِ اللَّهِ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا مِثْلَ الْقَتْلِ فِي سَبِيلِ اللَّهِ مَا عَلَى الْأَرْضِ بُقْعَةٌ أَحَبُّ إِلَيَّ أَنْ يَكُونَ قَبْرِي بِهَا مِنْهَا» ثَلَاثَ مَرَّاتٍ. رَوَاهُ مَالِكٌ مُرْسَلًا
In-book reference: Mishkat al-Masabih Book 10 Chapter 16c Hadith 1