Abu Hurairah reported,

A black woman, or perhaps a young man, used to sweep the mosque. The Messenger of Allah ﷺ noticed her absence and asked about her, or about him. The people replied, "She died."He said, "Why did you not inform me?"It seemed they had considered her affair, or his affair, too insignificant to mention.He said, "Show me her grave."So they showed him, and he prayed over her. Then he said, "These graves are filled with darkness for their occupants, and Allah عز وجل illuminates them through my prayer over them."

Muslim 2215

Sahih

و حدثني أبو الربيع الزهراني وأبو كامل فضيل بن حسين الجحدري واللفظ لأبي كامل قالا حدثنا حماد وهو ابن زيد عن ثابت البناني عن أبي رافع

عن أبي هريرة

أن امرأة سوداء كانت تقم المسجد أو شابا ففقدها رسول الله ﷺ فسأل عنها أو عنه فقالوا مات قال أفلا كنتم آذنتموني قال فكأنهم صغروا أمرها أو أمره فقال دلوني على قبره فدلوه فصلى عليها ثم قال إن هذه القبور مملوءة ظلمة على أهلها وإن الله عز وجل ينورها لهم بصلاتي عليهم

مسلم 2215صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Funerals
Chapter
Prayer over the grave
Numbering
Darussalam 2215
Muslim 2215