Bulugh al-Maram, Book 3, Hadith 589 (English) ⓘ
‘Auf bin Malik (RAA) narrated that the Messenger of Allah offered the funeral prayer, and I memorized this supplication (that he said for the deceased), “'O Allah! Forgive him and have mercy on him (on her). Grant him ease and respite. Make his resting place a noble one, and facilitate his entry. Wash him with the most pure and clean water, snow and hail. Purify him from sins as a white garment is cleansed of dirt. Give him in exchange a home better than his home (on earth) and a family better than his family. Grant him entrance to Paradise and protect him from the trials of the grave and the torture of Hell Fire." Related by Muslim.
وَعَنْ عَوْفِ بْنِ مَالِكٍ - رضى الله عنه - قَالَ: { صَلَّى رَسُولُ اَللَّهِ - صلى الله عليه وسلم -عَلَى جَنَازَةٍ، فَحَفِظْتُ مِنْ دُعَائِهِ: "اَللَّهُمَّ اغْفِرْ لَهُ, وَارْحَمْهُ وَعَافِهِ, وَاعْفُ عَنْهُ, وَأَكْرِمْ نُزُلَهُ, وَوَسِّعْ مُدْخَلَهُ, وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ, وَنَقِّهِ مِنْ اَلْخَطَايَا كَمَا نَقَّيْتَ 1 اَلثَّوْبَ اَلْأَبْيَضَ مِنَ الدَّنَسِ, وَأَبْدِلْهُ دَارًا خَيْرًا مِنْ دَارِهِ, وَأَهْلًا خَيْرًا مِنْ أَهْلِهِ, وَأَدْخِلْهُ اَلْجَنَّةَ, وَقِهِ فِتْنَةَ اَلْقَبْرِ وَعَذَابَ اَلنَّارِ } رَوَاهُ مُسْلِمٌ 2. 1 - كذا بالأصلين، وهي رواية لمسلم، وهو كذلك "بالشرح".2 - صحيح. رواه مسلم (963)، وزاد: قال عوف: فتمنيت أن لو كنت أنا الميت؛ لدعاء رسول الله صلى الله عليه وسلم على ذلك الميت.
also referenced under: Book 3, Hadith 33 (In-Book)