Sunan Ibn Majah, Book 6, Hadith 1566 (In-Book)

It was narrated that Wathilah bin Asqa’ said: “The Messenger of Allah offered the funeral prayer for a man among the Muslims and I heard him say: ‘O Allah, so-and-so the son of so-and-so is in Your case and under Your protection. Protect him from the trial of the grave and the torment of the Fire, for You are the One Who keeps the promise and You are the Truth. Forgive him and have mercy on him, for You are the Oft-Forgiving, Most Merciful.”

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

sunnah.com