A person who used to sweep the mosque, a black man, died, or it was a woman who died. The Prophet ﷺ noticed her absence and asked, "What happened to the person who used to sweep the mosque?"He was told, "She died."He said, "Why did you not inform me?"They replied, "It was at night."He said, "Then show me her grave."He went to the grave and prayed over her. Thabit said at that point, or in another narration, that he said, "These graves are filled with darkness for their occupants, and Allah illuminates them through my prayer over them."
حدثنا عفان حدثنا حماد بن زيد حدثنا ثابت عن أبي رافع
أن إنسانا كان يقم المسجد أسود مات أو ماتت ففقدها النبي ﷺ فقال ما فعل الإنسان الذي كان يقم المسجد قال فقيل له مات قال فهلا آذنتموني به فقالوا إنه كان ليلا قال فدلوني على قبرها قال فأتى القبر فصلى عليها قال ثابت عند ذاك أو في حديث آخر إن هذه القبور مملوءة ظلمة على أهلها وإن الله عز وجل ينورها بصلاتي عليهم
Its isnad is sahih. Bukhari narrated it, 1/553, no. 458, in the Book of Prayer, chapter on sweeping the masjid, and Muslim, 2/657, no. 956, in the Book of Funerals, chapter on praying over the grave, and it has already appeared at 8619.