Awf bin Malik reported,

The Messenger of Allah ﷺ performed the funeral prayer over a deceased person, and I memorized from his supplication as he was saying, "O Allah, forgive him and have mercy on him, grant him well-being and pardon him, honor his place of arrival, make spacious his entry, wash him with water, snow, and hail, and cleanse him of sins as a white garment is cleansed of filth. Replace his home with a better home, his family with a better family, and his spouse with a better spouse. Admit him into Paradise and protect him from the punishment of the grave," or "from the punishment of the Fire."He said, "I wished that I were that deceased person."

Azami 11103

Sahih

عن عوف بن مالك يقول

صلى رسول الله ﷺ على جنازة، فحفظت من دعائه وهو يقول: اللهم اغفر له وارحمه، وعافه واعف عنه، وأكرم نزله، ووسع مدخله، واغسله بالماء والثلج والبرد، ونقه من الخطايا كما نقيت الثوب الأبيض من الدنس، وأبدله دارا خيرا من داره، وأهلا خيرا من أهله، وزوجا خيرا من زوجه، وأدخله الجنة، وأعذه من عذاب القبر (أو من عذاب النار) قال: حتى تمنيت أن أكون أنا ذلك الميت.

الأعظمي 11103صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications for illness and funerals, and what relates to them
Section
Supplication for the deceased in the funeral prayer
Numbering
Jami al-Kamil 11103 (2nd edition)
Azami 11103