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

It wasnarrated that Umm Salamah said: “The Messenger of Allah (PBUH)said:‘When you visit one who is sick or dying, say good things, fortheangels say: Amin to whatever you say.’ When Abu Salamah died, Icame to the Prophet (PBUH) and said: ‘O Messenger of Allah! AbuSalamahhas died.’ He said: ‘Say: “Allahummaghfir li wa lahu,wa a’qibni minhu‘uqba hasanah (O Allah, forgive me and him, andcompensate me withsomeone better than him).’” She said: ‘Isaid that, and Allahcompensated me with someone better than him:Muhammad the Messenger ofAllah (PBUH).’” Translation Not Available

Book Ref: Sunan Ibn Majah Book 6 Hadith 1447
Web Ref:  Sunan Ibn Majah Vol 1 Book 6 Hadith 1447