Awf bin Malik reported,

The Messenger of Allah ﷺ prayed over a funeral, and I memorized his supplication as he said, "Allah, forgive him, have mercy on him, grant him well-being and pardon him. Honor his place of arrival and expand his place of entry. Wash him with water, snow, and hail. Cleanse him of his sins as a white garment is cleansed of filth. Give him a home better than his home, a family better than his family, and a spouse better than his 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 3712

Sahih

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

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

الأعظمي 3712صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Prayer over the deceased
Section
Supplications over the funeral
Numbering
Jami al-Kamil 3712 (2nd edition)
Azami 3712