Ali bin Shammakh said: I was with Marwan when he asked Sayyiduna Abu Hurayrah (may Allah be pleased with him): "Which supplication of the funeral prayer did you hear from the Prophet (peace and blessings be upon him)?" He said: He (peace and blessings be upon him) used to recite: 'Allahumma anta rabbuha, wa anta khalaqtaha, wa anta hadaytaha ilal-Islam, wa anta qabadta ruhaha, fa-anta a'lamu bi-sirriha wa alaniyatiha, ji'na shufa'a'a faghfir laha' (O Allah, You are her Lord, You created her, You guided her to Islam, and You took her soul; You know best her hidden and her open affairs. We have come as intercessors, so forgive her.)
Shu'bah differed from him in its chain, and the narration of Abd al-Warith is more authentic.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6976