English : Vol. 1, Book 6, Hadith 1557
Grading supplied with this record: Hasan (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
حَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ، حَدَّثَنَا هَاشِمُ بْنُ الْقَاسِمِ، حَدَّثَنَا مُبَارَكُ بْنُ فَضَالَةَ، حَدَّثَنِي حُمَيْدٌ الطَّوِيلُ، عَنْ أَنَسِ بْنِ مَالِكٍ، قَالَ لَمَّا تُوُفِّيَ النَّبِيُّ ـ صلى الله عليه وسلم ـ كَانَ بِالْمَدِينَةِ رَجُلٌ يَلْحَدُ وَآخَرُ يَضْرَحُ فَقَالُوا نَسْتَخِيرُ رَبَّنَا وَنَبْعَثُ إِلَيْهِمَا فَأَيُّهُمَا سَبَقَ تَرَكْنَاهُ . فَأُرْسِلَ إِلَيْهِمَا فَسَبَقَ صَاحِبُ اللَّحْدِ فَلَحَدُوا لِلنَّبِيِّ ـ صلى الله عليه وسلم ـ .
It was narrated that Anas bin Malik said:
"When the Prophet (ﷺ) died, there was a man in Al-Madinah who used to make a niche in the grave and another who used to dig graves without a niche. They said: "Let us pray Istikharah to our Lord and call for them both, and whichever of them comes first, we will let him do it.' So they were both sent for, and the one who used to make the niche-grave came first, so they made a niche-grave for the Prophet (ﷺ)."
Full reference and source
English : Vol. 1, Book 6, Hadith 1557 Arabic : Book 6, Hadith 1624
View source on Sunnah.com (opens in a new tab)