Ali bin Shamakh reported,

I witnessed Marwan ask Abu Hurairah, "How did you hear the Messenger of Allah ﷺ pray over the deceased?"Abu Hurairah replied, "Along with what you just said?"Marwan said, "Yes." This referred to a conversation that had taken place between them earlier.Abu Hurairah said, "He would say, 'O Allah, You are its Lord, You created it, You guided it to Islam, You took its soul, and You know best its hidden state and its open state. We have come to You as intercessors, so forgive him.'"

Abu Dawud 3200

Hasan

حدثنا أبو معمر عبد الله بن عمرو حدثنا عبد الوارث حدثنا أبو الجلاس عقبة بن سيار

حدثني علي بن شماخ قال

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

أبو داود 3200حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Funerals
Chapter
Supplication for the deceased
Numbering
Darussalam 3200
Abu Dawud 3200