Yazid bin Rukana reported,

When the Messenger of Allah ﷺ stood to perform the funeral prayer over a deceased person, he would say, "O Allah, Your servant and the son of Your maidservant is in need of Your mercy, and You have no need to punish him. If he was a doer of good, increase his good deeds, and if he was a wrongdoer, overlook his sins."

Azami 3716

Hasan

عن يزيد بن ركانة قال

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

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