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 said, "She has died."He asked, "Why did you not inform me?"It seemed they had considered the matter too trivial to mention. So he said, "Show me her grave."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."

Azami 3730

Sahih

عن أبي هريرة

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

الأعظمي 3730صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Prayer over the deceased
Section
Prayer over the grave after burial
Numbering
Jami al-Kamil 3730 (2nd edition)
Azami 3730