One of the daughters of the Messenger of Allah ﷺ sent word to him that a child of hers, a son or a daughter, was on the verge of death, asking him to come to them.He sent word back conveying his greetings of peace, saying, "To Allah belongs what He takes and what He gives, and everything with Him has an appointed term, so let her be patient and seek reward from Allah."She sent again, insisting by oath that he come. So he stood up, and we stood with him. The child was lifted onto, or into, the lap of the Messenger of Allah ﷺ, with his breath rattling in his chest. Among the group were Saad bin Ubada and Ubayy, I believe.The eyes of the Messenger of Allah ﷺ overflowed with tears.Saad said to him, "What is this, Messenger of Allah?"He replied, "This is mercy that Allah places in the hearts of whichever of His servants He wills. Allah shows mercy only to those of His servants who are merciful."
حدثنا محمد بن جعفر حدثنا شعبة عن عاصم الأحول قال سمعت أبا عثمان يحدث
أرسلت إلى رسول الله ﷺ بعض بناته أن صبيا لها ابنا أو ابنة قد احتضرت فاشهدنا قال فأرسل إليها يقرأ السلام ويقول إن لله ما أخذ وما أعطى وكل شيء عنده إلى أجل مسمى فلتصبر ولتحتسب فأرسلت تقسم عليه فقام وقمنا فرفع الصبي إلى حجر أو في حجر رسول الله ﷺ ونفسه تقعقع وفي القوم سعد بن عبادة وأبي أحسب ففاضت عينا رسول الله ﷺ فقال له سعد ما هذا يا رسول الله قال هذه رحمة يضعها الله في قلوب من يشاء من عباده وإنما يرحم الله من عباده الرحماء
Its isnad is sahih, its narrators are leading authorities. Bukhari related the hadith, 2/100, Shaab edition, in the Book of Funerals. Muslim also related it, 2/635, no. 923, in the Book of Funerals, chapter on weeping over the dead. Abu Dawud related it, 3/189, no. 3125, and Nasai, 4/21-22, and Ibn Majah, 1/506, no. 1588, all of them in the Book of Funerals.