Amir bin Rabia reported,

The Messenger of Allah ﷺ passed by a grave and asked, "Whose grave is this?"They replied, "It is the grave of so-and-so."He said, "Why did you not inform me?"They answered, "You were asleep, and we did not want to wake you."He said, "Do not do that. Call me for your funerals." Then he lined the people up before the grave and prayed over her.

Azami 3736

Hasan

عن عامر بن ربيعة قال

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

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