Usama bin Zayd reported,

We were with the Prophet ﷺ when a messenger came from one of his daughters, calling him to her son who was dying.The Prophet ﷺ said to the messenger, "Go back to her and tell her that whatever Allah takes belongs to Him, and whatever He gives belongs to Him, and everything has an appointed term with Him. So tell her to be patient and to seek her reward from Allah."The messenger returned to him saying that she had sworn he must come to her. So the Prophet ﷺ got up, and Saad bin Ubada and Muaz bin Jabal went with him. The child was handed to him while his soul rattled in his chest like water in an old waterskin, and the Prophet's eyes filled with tears.Saad said to him, "Messenger of Allah, what is this?"He replied, "This is a mercy that Allah has placed in the hearts of His servants. Allah shows mercy only to those of His servants who are merciful."

Bukhari 7377

Sahih

حدثنا أبو النعمان حدثنا حماد بن زيد عن عاصم الأحول عن أبي عثمان النهدي

عن أسامة بن زيد قال

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

البخاري 7377صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
Saying of Allah تبارك وتعالى, "Say, call upon Allah or call upon Rahman. Whichever you call upon, to Him belong the most beautiful names"
Numbering
Darussalam 7377
Bukhari 7377