Hadithcore
Sahih al-Bukhari, 458
sahih

Narrated Abu Huraira:

A black man or a black woman used to sweep the mosque and he or she died. The Prophet (ﷺ) asked about her (or him). He was told that she (or he) had died. He said, "Why did you not inform me? Show me his grave (or her grave)." So he went to her (his) grave and offered her (his) funeral prayer."

حَدَّثَنَا سُلَيْمَانُ بْنُ حَرْبٍ، قَالَ حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ، عَنْ ثَابِتٍ، عَنْ أَبِي رَافِعٍ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَجُلاً، أَسْوَدَ ـ أَوِ امْرَأَةً سَوْدَاءَ ـ كَانَ يَقُمُّ الْمَسْجِدَ، فَمَاتَ، فَسَأَلَ النَّبِيُّ صلى الله عليه وسلم عَنْهُ فَقَالُوا مَاتَ‏.‏ قَالَ ‏

‏ أَفَلاَ كُنْتُمْ آذَنْتُمُونِي بِهِ دُلُّونِي عَلَى قَبْرِهِ ‏

‏‏.‏ ـ أَوْ قَالَ قَبْرِهَا ـ فَأَتَى قَبْرَهُ فَصَلَّى عَلَيْهِ‏.‏

References2 variants
In-Book Reference
Book 8, Hadith 106
USC-MSA web (English) reference
Vol. 1, Book 8, Hadith 448 (deprecated numbering scheme)
Sharh · explanationclick to expand
The Prophet (blessings and peace of Allah be upon him) was as his Lord described him in the Qur’an: {There has certainly come to you a Messenger from among yourselves. Grievous to him is what you suffer; [he is] concerned over you and to the believers is kind and merciful} [al-Tawbah 9:128]. His offering the funeral prayer for the deceased was a mercy to him, and a light with which Allah would illuminate the grave of the deceased. In this hadith, Abu Hurayrah (may Allah be pleased with him) narrates that the Prophet (blessings and peace of Allah be upon him) asked about a black man or woman who used to clean and sweep the mosque, and they told him that she had died. So he said to his companions: “Why did you not tell me” and inform me that she had died? According to a report in al-Sahihayn, they thought little of the deceased and did not pay much attention to him. According to a report narrated by al-Nasa’i from Abu Umamah ibn Sahl ibn Hunayf (may Allah be pleased with him), they said: We did not want to wake you up at night. Then the Prophet (blessings and peace of Allah be upon him) asked about his or her grave, and he offered the funeral prayer for the deceased at the graveside, after the burial had taken place. This hadith highlights the virtue of cleaning the mosque, and of asking about a servant or friend when you do not see him for a while. It indicates that one may reciprocate by offering supplication, and that it is encouraged to attend the funerals of good people. It indicates that it is permissible to offer the funeral prayer at the grave of a deceased person in the same city, for one who did not attend his funeral, and that it is prescribed to announce deaths..
Related hadiths2
Compare isnād across 2 related chains →