The daughter of the Prophet ﷺ sent word to him saying, "A son of mine is dying, so please come to us." He sent back his greetings of peace and said, "What Allah has taken belongs to Him, and what He has given belongs to Him. Everything with Allah has an appointed term, so let her be patient and seek her reward from Him."She sent word to him again, urging him by oath to come to her. So he set out, accompanied by Saad bin Ubada, Muaz bin Jabal, Ubayy bin Kaab, Zayd bin Thabit, and some other men. The child was lifted up to the Messenger of Allah ﷺ while his soul was rattling in his chest, and the Prophet's eyes overflowed with tears.Saad asked, "Messenger of Allah, what is this?"He replied, "This is mercy that Allah has placed in the hearts of His servants. Allah shows mercy only to those of His servants who are merciful."
أخبرنا سويد بن نصر قال أنبأنا عبد الله عن عاصم بن سليمان عن أبي عثمان قال حدثني
أرسلت بنت النبي ﷺ إليه أن ابنا لي قبض فأتنا فأرسل يقرأ السلام ويقول إن لله ما أخذ وله ما أعطى وكل شيء عند الله بأجل مسمى فلتصبر ولتحتسب فأرسلت إليه تقسم عليه ليأتينها فقام ومعه سعد بن عبادة ومعاذ بن جبل وأبي بن كعب وزيد بن ثابت ورجال فرفع إلى رسول الله ﷺ الصبي ونفسه تقعقع ففاضت عيناه فقال سعد يا رسول الله ما هذا قال هذا رحمة يجعلها الله في قلوب عباده وإنما يرحم الله من عباده الرحماء
Bukhari narrated it in the Book of Funerals, in the chapter on the saying of the Prophet ﷺ, "The deceased is punished for some of his family's weeping over him," etc., hadith no. 1284, from the hadith of Abdullah bin Mubarak. Muslim narrated it in the Book of Funerals, in the chapter on weeping over the deceased, hadith no. 923, from the hadith of Asim, through the same chain. It is also found in al-Kubra, hadith no. 1995.Abu Uthman is Abdul-Rahman bin Mull.