Abu Umama bin Sahl reported,

He reported that a poor woman fell ill, and the Prophet ﷺ was informed of her illness. The Messenger of Allah ﷺ used to visit the poor and ask after them, so he said, "When she dies, let me know."Her funeral procession went out at night, and they disliked waking the Messenger of Allah ﷺ. When morning came, the Messenger of Allah ﷺ was told what had happened with her, and he said, "Did I not order you to inform me about her?"They replied, "Messenger of Allah, we did not want to bring you out at night and wake you."So the Messenger of Allah ﷺ went out, arranged the people in rows at her grave, and pronounced four takbirs.

Azami 3734

Sahih

عن أبي أمامة بن سهل بن حنيف

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

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