Wathila bin Asqa reported,

The Messenger of Allah ﷺ led us in funeral prayer over one of the Muslims, and I heard him say, "O Allah, so-and-so, son of so-and-so, is under Your protection and within the bond of Your security. Shield him from the trial of the grave and the torment of the Fire. You are the One worthy of fulfilling promises and worthy of truth," and in another narration, "worthy of praise." "O Allah, forgive him and have mercy on him, for You are the Most Forgiving, the Most Merciful."

Azami 11107

Hasan

عن واثلة بن الأسقع قال

صلى بنا رسول الله ﷺ على رجل من المسلمين، فسمعته يقول: اللهم إن فلان بن فلان في ذمتك، وحبل جوارك، فقه من فتنة القبر، وعذاب النار، وأنت أهل الوفاء والحق- وفي رواية: الحمد- اللهم فاغفر له، وارحمه، إنك أنت الغفور الرحيم.

الأعظمي 11107حسن
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 11107 (2nd edition)
Azami 11107