In the funeral prayer
اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ، وَعَافِهِ وَاعْفُ عَنْهُ، وَأَكْرِمْ نُزُلَهُ، وَوَسِّعْ مُدْخَلَهُ، وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ، وَنَقِّهِ مِنَ الْخَطَايَا كَمَا نَقَّيْتَ الثَّوْبَ الْأَبْيَضَ مِنَ الدَّنَسِ، وَأَبْدِلْهُ دَارًا خَيْرًا مِنْ دَارِهِ، وَأَهْلًا خَيْرًا مِنْ أَهْلِهِ، وَزَوْجًا خَيْرًا مِنْ زَوْجِهِ، وَأَدْخِلْهُ الْجَنَّةَ، وَأَعِذْهُ مِنْ عَذَابِ الْقَبْرِ وَمِنْ عَذَابِ النَّارِ
Transliteration
Allahummaghfir lahu warhamh, wa 'afihi wa'fu 'anh, wa akrim nuzulah, wa wassi' mudkhalah, waghsilhu bil-ma'i wath-thalji wal-barad, wa naqqihi minal-khataya kama naqqaytath-thawbal-abyada minad-danas, wa abdilhu daran khayran min darih, wa ahlan khayran min ahlih, wa zawjan khayran min zawjih, wa adkhilhul-jannah, wa a'idhhu min 'adhabil-qabri wa min 'adhabin-nar.
Meaning
O Allah, forgive him and have mercy on him, keep him safe and pardon him, honour his reception and widen his entrance. Wash him with water, snow and hail, and cleanse him of sins as You cleanse a white garment of dirt. Give him a home better than his home, a family better than his family and a spouse better than his spouse. Admit him to Paradise and protect him from the punishment of the grave and the punishment of the Fire.
The story
Awf ibn Malik said: the Prophet ﷺ prayed over a deceased man and I memorised this dua from him. He said he wished he were that man, because of the Prophet's dua for him. In the Shafi'i school it is said after the third takbir. For a woman, the endings change to the feminine (laha, warhamha and so on).
When
In the janazah prayer, after the third takbir
Purpose and benefits
It is among the most complete duas for the deceased, from the Prophet's own prayer.
A Companion wished he were the deceased because of this dua.
Sources
- Sahih Muslim 963 Sahih
Awf ibn Malik: he wished he were that deceased.