ذِكْرُ الْأَمْرِ لِمَنْ حَضَرَ الْمَيِّتَ بِسُؤَالِ اللَّهِ جَلَّ وَعَلَا الْمَغْفِرَةَ لِمَنْ حَضَرَتْهُ الْمَنِيَّةُ
The Messenger of Allah ﷺ: When you attend dying man, you should say good words, for the angels say Amin to what you say. When Abu Salamah died, I said: What should I say, Messenger of Allah? He said: O Allah forgive him, and give us something good in exchange. She said: So Allah gave me Muhammad ﷺ in exchange for him. (Using translation from Abū Dāʾūd 3115)
قَالَ رَسُولُ اللَّهِ ﷺ «إِذَا حَضَرْتُمُ الْمَيِّتَ فَقُولُوا خَيْرًا فَإِنَّ الْمَلَائِكَةَ تُؤَمِّنُ عَلَى مَا تَقُولُونَ» قَالَتْ فَلَمَّا مَاتَ أَبُو سَلَمَةَ قُلْتُ يَا رَسُولَ اللَّهِ مَا أَقُولُ؟ قَالَ «قُولِي اللَّهُمَّ اغْفِرْ لَهُ وَأَعْقِبْنَا عُقْبَى صَالِحَةً» قَالَتْ فَأَعْقَبَنِي اللَّهُ مُحَمَّدًا ﷺ