Dua for the Deceased at the Funeral Prayer

اَللّٰهُمَّ إِنَّ فُلَانَ بْنَ فُلَانٍ فِيْ ذِمَّتِكَ، وَحَبْلِ جِوَارِكَ، فَقِهِ مِنْ فِتْنَةِ الْقَبْرِ، وَعَذَابِ النَّارِ، وَأَنْتَ أَهْلُ الْوَفَاءِ وَالْحَقِّ، فَاغْفِرْ لَهُ وَارْحَمْهُ إِنَّكَ أَنْتَ الْغَفُوْرُ الرَّحِيْمُ

Allaahumma ‘inna [name the person] fee thimmatika, wa habli jiwaarika, faqihi min fitnatil-qabri wa ‘athaabin-naari, wa ‘Anta ‘ahlul-wafaa’i walhaqqi. Faghfir lahu warhaw.hu ‘innaka ‘Antal-Ghafoorur-Raheem

O Allah, surely [name the person] is under Your protection, and in the rope of Your security, so save him from the trial of the grave and from the punishment of the Fire. You fulfill promises and grant rights, so forgive him and have mercy on him. Surely You are Most Forgiving, Most Merciful.