Sahih Muslim – Hadith No : 2174

Usama b. Zaid reported: While we were with the Apostle of Allah (may peace be upon him), one of his daughters sent to him (the Messenger) to call him and inform him that her child or her son was dying. The Messenger of Allah (may peace be upon him) told the messenger to go back and tell her that what Allah had taken belonged to Him, and to him belonged what He granted; and He has an appointed time for everything. So you (the messenger) order her to show endurance and seek reward from Allah. The messenger came back and said: She adjures him to come to her. He got up to go accompanied by Sa’d b. ‘Ubada, Mu’adh b. Jabal, and I also went along with them. The child was lifted to him and his soul was feeling as restless as if it was in an old (waterskin). His (Prophet’s) eyes welled up with tears. Sa’d said: What is this, Messenger of Allah? He replied: This is compassion which Allah has placed in the hearts of His servants, and God shows compassion only to those of His servants who are compassionate.

Hadith In Arabic Text :

حدثنا أبو كامل الجحدري، حدثنا حماد، – يعني ابن زيد – عن عاصم الأحول، عن أبي عثمان النهدي، عن أسامة بن زيد، قال كنا عند النبي صلى الله عليه وسلم فأرسلت إليه إحدى بناته تدعوه وتخبره أن صبيا لها – أو ابنا لها – في الموت فقال للرسول ‏”‏ ارجع إليها فأخبرها إن لله ما أخذ وله ما أعطى وكل شىء عنده بأجل مسمى فمرها فلتصبر ولتحتسب ‏”‏ فعاد الرسول فقال إنها قد أقسمت لتأتينها ‏.‏ قال فقام النبي صلى الله عليه وسلم وقام معه سعد بن عبادة ومعاذ بن جبل وانطلقت معهم فرفع إليه الصبي ونفسه تقعقع كأنها في شنة ففاضت عيناه فقال له سعد ما هذا يا رسول الله قال ‏”‏ هذه رحمة جعلها الله في قلوب عباده وإنما يرحم الله من عباده الرحماء ‏”‏ ‏.‏

Chapter : The Book of Prayer (Funerals) – كتاب الجنائز