Anas bin Malik reported,

A black man used to clean the mosque, then he died and was buried at night. The Prophet ﷺ was informed of his death, and he said, "Take me to his grave."So they went to his grave, and he said, "These graves are filled with darkness for their occupants, but Allah illuminates them through my prayer over them."He came to the grave and prayed over him. Then a man from the Ansar said, "Messenger of Allah, my brother died and you did not pray over him."He asked, "Where is his grave?"The man told him, and the Messenger of Allah ﷺ went off with the Ansari.

Azami 3732

Hasan

عن أنس

أن أسود كان ينظف المسجد فمات، فدفن ليلا، وأتي النبي ﷺ، فأخبر، فقال: انطلقوا إلى قبره، فانطلقوا إلى قبره، فقال: إن هذه القبور ممتلئة على أهلها ظلمة، وإن الله ينورها بصلاتي عليها، فأتى القبر فصلى عليه، وقال رجل من الأنصار: يا رسول الله، إن أخي مات ولم تصل عليه. قال: فأين قبره؟ فأخبره فانطلق رسول الله ﷺ مع الأنصاري.

الأعظمي 3732حسن
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 3732 (2nd edition)
Azami 3732