Usama bin Zayd reported,

One of the daughters of the Prophet ﷺ sent word to him while he was with the Prophet ﷺ, along with Saad and Ubayy. She said, "We believe my daughter is dying, so come and be with us."He sent back greetings of peace and said, "To Allah belongs what He takes and what He gives, and everything has an appointed term with Him. So let her seek reward and be patient."But she sent again, insisting that he come. So the Prophet ﷺ rose, and we rose with him. The child was lifted into the lap of the Prophet ﷺ, her breath rattling in her chest, and the eyes of the Prophet ﷺ overflowed with tears.Saad asked him, "What is this, Messenger of Allah?"He replied, "This is mercy, which Allah has placed in the hearts of whichever of His servants He wills. Allah shows mercy only to those of His servants who are themselves merciful."

Bukhari 5655

Sahih

حدثنا حجاج بن منهال حدثنا شعبة قال أخبرني عاصم قال سمعت أبا عثمان

عن أسامة بن زيد رضي الله عنهما

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

البخاري 5655صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Sick
Chapter
Visiting sick children
Numbering
Darussalam 5655
Bukhari 5655