Sunan Abi Dawud, Hadith 3125

Narrated Usamah b. Zaid: A daughter of Messenger of Allah sent him message while I and Sa'd were with him and I think Ubayy was also there: My son or daughter (the narrator is doubtful) is dying, so come to us. He sent her greeting, saying at the same time: Say! What Allah has been taken belongs to Him, what He has given (belongs to Him), and He has appointed time for everything. She then sent a message adjuring him (to come to her). So he came to her and the child who was on the point of death was placed in the hearts of those whom He wished. Allah shows compassion only to those of His servants who are compassionate.

حَدَّثَنَا أَبُو الْوَلِيدِ الطَّيَالِسِيُّ، حَدَّثَنَا شُعْبَةُ، عَنْ عَاصِمٍ الأَحْوَلِ، قَالَ سَمِعْتُ أَبَا عُثْمَانَ، عَنْ أُسَامَةَ بْنِ زَيْدٍ، أَنَّ ابْنَةً لِرَسُولِ اللَّهِ، صلى الله عليه وسلم أَرْسَلَتْ إِلَيْهِ وَأَنَا مَعَهُ وَسَعْدٌ وَأَحْسِبُ أُبَيًّا أَنَّ ابْنِي أَوْ بِنْتِي قَدْ حُضِرَ فَاشْهَدْنَا ‏.‏ فَأَرْسَلَ يُقْرِئُ السَّلاَمَ فَقَالَ ‏"‏ قُلْ لِلَّهِ مَا أَخَذَ وَمَا أَعْطَى وَكُلُّ شَىْءٍ عِنْدَهُ إِلَى أَجَلٍ ‏"‏ ‏.‏ فَأَرْسَلَتْ تُقْسِمُ عَلَيْهِ فَأَتَاهَا فَوُضِعَ الصَّبِيُّ فِي حِجْرِ رَسُولِ اللَّهِ صلى الله عليه وسلم وَنَفْسُهُ تَقَعْقَعُ فَفَاضَتْ عَيْنَا رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ لَهُ سَعْدٌ مَا هَذَا قَالَ ‏"‏ إِنَّهَا رَحْمَةٌ وَضَعَهَا اللَّهُ فِي قُلُوبِ مَنْ يَشَاءُ وَإِنَّمَا يَرْحَمُ اللَّهُ مِنْ عِبَادِهِ الرُّحَمَاءَ ‏"‏ ‏.‏

sunnah.com

also referenced under: Hadith 3119 (Hasan)