Usama bin Zayd reported,

Umaymah, the daughter of Zaynab, was brought to the Messenger of Allah ﷺ while her soul was rattling in her chest as though it were inside a worn-out waterskin. The Messenger of Allah ﷺ said, "To Allah belongs what He takes and to Allah belongs what He gives, and everything has an appointed term." Then his eyes filled with tears.Saad bin Ubada said to him, "Messenger of Allah, are you weeping? Did you not forbid weeping?"The Messenger of Allah ﷺ replied, "This is only a mercy that Allah has placed in the hearts of His servants. Allah shows mercy only to those of His servants who are merciful."

Ahmad 21779

Sahih

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

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

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

أحمد 21779صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Usama bin Zayd
Numbering
Darussalam 21779
Ahmad 21779