It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that he asked Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him) about the funeral prayer, and he said: By Allah! I will tell you: you begin by saying takbir, then you send blessings upon the Prophet (peace and blessings be upon him), and you say: 'Allahumma inna abdaka fulanan kana la yushriku bika shay'an wa anta a'lamu bihi, in kana muhsinan fazid fi ihsanihi, wa in kana musi'an fatajawaz anhu, Allahumma la tahrimna ajrahu wa la tudillana ba'dahu' (O Allah, this servant of Yours, so-and-so, did not associate anything with You, and You know him best. If he was a doer of good, then increase his good; and if he was a wrongdoer, then overlook his faults. O Allah, do not deprive us of his reward, and do not lead us astray after him.)
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6963