Usama reported,

A son of one of the daughters of the Prophet ﷺ was dying, so she sent word to him asking him to come to her. He sent back the message, "To Allah belongs what He takes and to Him belongs what He gives, and everything has an appointed term, so let her be patient and seek reward."She sent to him again, insisting by oath that he come. So the Messenger of Allah ﷺ got up, and I went with him, along with Muaz bin Jabal, Ubayy bin Kaab, and Ubada bin Samit.When we entered, they handed the child to the Messenger of Allah ﷺ while his soul was rattling in his chest. I think he said it was like a worn-out waterskin. The Messenger of Allah ﷺ wept.Saad bin Ubada said, "Are you weeping?"He replied, "Allah shows mercy only to those of His servants who are merciful."

Bukhari 7448

Sahih

حدثنا موسى بن إسماعيل حدثنا عبد الواحد حدثنا عاصم عن أبي عثمان

عن أسامة قال

كان ابن لبعض بنات النبي ﷺ يقضي فأرسلت إليه أن يأتيها فأرسل إن لله ما أخذ وله ما أعطى وكل إلى أجل مسمى فلتصبر ولتحتسب فأرسلت إليه فأقسمت عليه فقام رسول الله ﷺ وقمت معه ومعاذ بن جبل وأبي بن كعب وعبادة بن الصامت فلما دخلنا ناولوا رسول الله ﷺ الصبي ونفسه تقلقل في صدره حسبته قال كأنها شنة فبكى رسول الله ﷺ فقال سعد بن عبادة أتبكي فقال إنما يرحم الله من عباده الرحماء

البخاري 7448صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
His saying, "Indeed, the mercy of Allah is close to the doers of good"
Numbering
Darussalam 7448
Bukhari 7448