Abu Umama bin Sahl reported,

A poor woman from al-Awali fell ill, and the Prophet ﷺ used to ask about her. He said, "If she dies, do not bury her until I have prayed over her."She passed away, and they brought her body to Madinah after the evening prayer. They found that the Messenger of Allah ﷺ had already gone to sleep, and they did not want to wake him, so they prayed over her and buried her at Baqi al-Gharqad.When morning came, the Messenger of Allah ﷺ asked them about her, and they replied, "She has already been buried, Messenger of Allah. We came to you but found you asleep, and we did not want to wake you."He said, "Come along."He set off walking, and they walked with him until they showed him her grave. The Messenger of Allah ﷺ then stood, and they lined up in rows behind him. He prayed over her, pronouncing four takbirs.

Azami 3706

Sahih

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

اشتكت امرأة بالعوالي مسكينة، ف كان النبي ﷺ يسألهم عنها، وقال: إن ماتت فلا تدفنوها حتى أصلي عليها، فتوفيت فجاؤا بها إلى المدينة بعد العتمة، فوجدوا رسول الله ﷺ قد نام فكرهوا أن يوقظوه، فصلوا عليها ودفنوها ببقيع الغرقد، فلما أصبح رسول الله ﷺ جاؤا فسألهم عنها، فقالوا: قد دفنت يا رسول الله، وقد جئناك فوجدناك نائما فكرهنا أن نوقظك، قال: فانطلقوا فانطلق يمشي ومشوا معه حتى أروه قبرها، فقام رسول الله ﷺ وصفوا وراءه فصلى عليها وكبر أربعا.

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