Mishkat al-Masabih 1655
وَعَنْ عَوْفِ بْنِ مَالِكٍ قَالَ: صَلَّى رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَلَى جَنَازَةٍ فَحَفِظْتُ مِنْ دُعَائِهِ وَهُوَ يَقُولُ: «اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَعَافِهِ وَاعْفُ عَنْهُ وَأَكْرِمْ نُزُلَهُ وَوَسِّعْ مُدْخَلَهُ وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ وَنَقِّهِ مِنَ الْخَطَايَا كَمَا نَقَّيْتَ الثَّوْبَ الْأَبْيَضَ مِنَ الدنس وأبدله دَارا خيرا من دَاره وَأهلا خَيْرًا مِنْ أَهْلِهِ وَزَوْجًا خَيْرًا مِنْ زَوْجِهِ وَأدْخلهُ الْجنَّة وأعذه من عَذَاب الْقَبْر وَمن عَذَاب النَّار» . وَفِي رِوَايَةٍ: «وَقِهِ فِتْنَةَ الْقَبْرِ وَعَذَابَ النَّارِ» قَالَ حَتَّى تَمَنَّيْتُ أَنْ أَكُونَ أَنَا ذَلِكَ الْمَيِّت. رَوَاهُ مُسلم
From ʿAwf ibn Malik, who said: The Messenger of Allah ﷺ prayed over a funeral, and I memorised from his supplication that he was saying: "O Allah, forgive him, have mercy on him, grant him well-being and pardon him. Make his reception honourable and his entrance wide. Wash him with water, snow and hail, and cleanse him of sins as You cleanse a white garment of dirt. Give him in exchange a home better than his home, a family better than his family, and a spouse better than his spouse. Admit him into Paradise and protect him from the punishment of the grave and from the punishment of the Fire." And in a narration: "And protect him from the trial of the grave and the punishment of the Fire." He said: Until I wished that I were that dead man. Reported by Muslim.