Yazid bin Thabit reported,

They went out with the Messenger of Allah ﷺ one day, and he saw a fresh grave. He asked, "What is this?"They replied, "This is so-and-so, the freedwoman of the tribe of so-and-so." The Messenger of Allah ﷺ recognized her. They said, "She died at midday while you were taking your nap, and we did not wish to wake you for her sake."The Messenger of Allah ﷺ stood, and the people lined up behind him, and he pronounced four takbirs over her. Then he said, "Whenever someone among you dies while I am still living among you, inform me of it, for my prayer over them is a mercy."

Nasai 2024

Sahih

أخبرنا عبيد الله بن سعيد أبو قدامة قال حدثنا عبد الله بن نمير قال حدثنا عثمان بن حكيم عن خارجة بن زيد بن ثابت

عن عمه يزيد بن ثابت

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

النسائي 2024صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Funerals
Chapter
Prayer over the grave
Numbering
Darussalam 2024
Nasai 2024