For the deceased at the funeral prayer

Allāhumma’ghfir lahu warḥamh, wa `āfihi, wa`fu `anh, wa akrim nuzulah, wa wassi` mudkhalah, wagh’silhu bi ‘lmā'i wath-thalji walbarad, wa naqqihi mina ‘l-khaṭāyā kamā naqqaytath-thawba ‘l-abyaḍa minad-danas, wa abdilhu dāran khayran min dārih, wa ahlan khayran min ahlih, wa zawjan khayran min zawjih, wa adkhilhu ‘l-jannah, wa a`idhhu min `adhābi ‘l-qabri [wa `adhābin-nār]. O Allah, forgive him and have mercy on him, and give him strength and pardon him. Be generous to him, and cause his entrance to be wide, and wash him with water and snow and hail. Cleanse him of his transgressions as white cloth is cleansed of stains. Give him an abode better than his home, and a family better than his family, and a wife better than his wife. Take him into Paradise, and protect him from the punishment of the grave [and from the punishment of Hell-fire]. Reference: Muslim 2/663.
Allāhumma’ghfir liḥayyinā, wa mayyitinā, wa shāhidinā, wa ghā'ibinā, wa ṣaghīrinā wa kabīrinā, wa dhakarinā wa unthānā. Allāhumma man aḥyaytahu minnā fa aḥyihi `ala ‘l-Islām, wa man tawaffaytahu minnā fatawaffahu `alal-īmān, Allāhumma lā taḥrimnā ajrah wa lā tuḍillanā ba`dah. O Allah forgive our living and our dead, those who are with us and those who are absent, our young and our old, our menfolk and our womenfolk. O Allah, whomever you give life from among us give him life in Islam, and whomever you take away from us take him away in Faith. O Allah, do not forbid us their reward and do not send us astray after them. Reference: Ibn Majah 1/480, Ahmad 2/368. See also Al-Albani, Sahih Ibn Majah 1/251.
Allāhumma inna [name the person] fī dhimmatik, wa ḥabli jiwārik, faqihi min fitnati ‘l-qabri wa `adhābin-nār, wa anta ahlu ‘l-wafā'i wa ‘l-ḥaqq. Faghfir lahu warḥamh innaka anta ‘l-Ghafūrur-Raḥīm. 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. Reference: Ibn Majah, Abu Dawud 3/211. See also Al Albani, Sahih Ibn Majah 1/251.
Allāhumma `abduka wabnu 'amatik iḥtāja ilā raḥmatik, wa anta ghaniyyun `an `adhābih, in kāna muḥsinan fazid fī ḥasanātih, wa in kāna musī'an fatajāwaz `anh. O Allah, Your male slave and the child of Your female slave is in need of Your mercy, and You are not in need of his torment. If he was pious then increase his rewards and if he was a transgressor then pardon him. Reference: Al-Hakim 1/359 who graded it authentic and Ath-Thahabi agreed with him. See also Al-Albani, Ahkamul-Jana'iz, p. 125.