Abu Hurairah reported,

A black woman used to sweep the mosque, and the Messenger of Allah ﷺ missed her. He asked about her after some days, and was told that she had died.He said, "Why did you not inform me?"Then he went to her grave and prayed over her.

Ibn Majah 1527

Sahih

حدثنا أحمد بن عبدة أنبأنا حماد بن زيد حدثنا ثابت عن أبي رافع

عن أبي هريرة

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

ابن ماجه 1527صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Funerals
Chapter
Prayer over the grave
Numbering
Darussalam 1527
Ibn Majah 1527