It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that he said: "We used to recite this supplication in the funeral prayer: 'Allahumma anta rabbuna wa rabbuhu, khalaqtahu wa razaqtahu, ahyaytahu wa kafaytahu, ighfir lana wa lahu, wa la tahrimna ajrahu, wa la tudillana ba'dahu' (O Allah! You alone are our Lord and his Lord; You created him and provided for him; You gave him life and took care of him; so forgive us and him, do not deprive us of his reward, and do not lead us astray after him)."
Imam Musaddad and Imam al-Bazzar recorded it; however, their chain contains a narrator named Zayd al-Ammi, who is da'if (weak).
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that a man asked him about the funeral prayer, and he said: "Then you send blessings upon the Prophet (peace and blessings be upon him), then you supplicate: 'Allahumma abduka fulan, aw amatuka fulanah, kana ya'buduka la yushriku bika shay'a, in kana muhsinan fa-zidhu fi ihsanihi, wa in kana musi'an fa-tajawaz anhu, Allahumma la tahrimna ajrahu wa la taftinna ba'dahu' (O Allah! This is Your servant so-and-so, or Your female servant so-and-so, who used to worship You and did not associate anything with You. If he was a doer of good, then increase his good deeds; and if he was a sinner, then overlook him. O Allah! Do not deprive us of his reward, and do not put us to trial after him)."
Imam Musaddad recorded it with a chain all of whose narrators are thiqat (trustworthy). Imam Abu Ya'la, and Imam Ibn Hibban in his Sahih, also recorded it with the wording that whenever Sayyiduna Abu Hurayrah (may Allah be pleased with him) prayed over a deceased person, he would supplicate: 'Allahumma abduka wa ibnu abdika kana yashhadu an la ilaha illa anta wa anna Muhammadan abduka wa rasuluka, wa anta a'lamu bihi, in kana muhsinan fa-zid fi ihsanihi, wa in kana musi'an faghfir lahu, wa la tahrimna ajrahu wa la taftinna ba'dahu' (O Allah! This is Your servant and the son of Your servant. He used to bear witness that there is no deity worthy of worship except You and that Muhammad (peace and blessings be upon him) is Your servant and Messenger, and You know his state better. If he was a doer of good, then increase his good deeds; and if he was a sinner, then forgive him. Do not deprive us of his reward, and do not put us to trial after him). Imam Malik recorded in al-Muwatta' through the route of Sa'id bin Abi Sa'id that he asked Sayyiduna Abu Hurayrah (may Allah be pleased with him): How do you pray the funeral prayer? Sayyiduna Abu Hurayrah (may Allah be pleased with him) replied: "By your life, I will certainly tell you. I walk with the funeral from the home of its family; then, when the deceased is placed (for the prayer), I proclaim the greatness of Allah (say the takbir), praise Allah Almighty and send blessings upon His Prophet (peace and blessings be upon him); then I say: 'O Allah! Your servant'" Then he mentioned the supplication that is in Imam Abu Ya'la's narration.
It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that he stood to lead a funeral prayer and said the takbir, then began reciting Surah al-Fatihah aloud, then sent blessings upon the Prophet (peace and blessings be upon him) and said the takbir, then supplicated for the deceased with great sincerity, then said the takbir and supplicated for the believing men and the believing women. Then he turned to the people and said: "O people! By Allah, I raised my voice in the recitation only so that you may know that it is a Sunnah."
Ahmad bin Mani' recorded it, and this narration is in Sahih al-Bukhari in abridged form.
It is narrated from Sayyidah Aishah (may Allah be pleased with her) that she said: "I heard the Messenger of Allah (peace and blessings be upon him) making this supplication in the funeral prayer: 'Allahummaghfir lahu wa salli alayhi, wa awridhu hawda rasulika' (O Allah! Forgive him, send down Your mercy upon him, and bring him to the Pond of Your Messenger (peace and blessings be upon him))."
Imam Abu Ya'la recorded it with a hasan (good) chain.
It is narrated from Sayyiduna Abu Qatadah (may Allah be pleased with him) that he saw the Messenger of Allah (peace and blessings be upon him) leading a funeral prayer. He says: I heard him (peace and blessings be upon him) saying: 'Allahummaghfir li-hayyina wa mayyitina, wa shahidina wa gha'ibina, wa saghirina wa kabirina, wa dhakarina wa unthana' (O Allah! Forgive our living and our dead, and forgive those of us who are present and those who are absent, our young and our old, and our men and our women). Abu Salamah also narrated this and added these words: 'Allahumma man ahyaytahu minna fa-ahyihi ala al-Islam, wa man tawaffaytahu minna fa-tawaffahu ala al-iman' (O Allah! Whomever of us You keep alive, keep him alive upon Islam, and whomever You cause to die, grant him death upon faith).
Imam Abu Ya'la, Imam Ahmad bin Hanbal and Imam al-Bayhaqi in "al-Kubra" recorded this hadith with a sahih (authentic) chain; Imam Ibn Majah also recorded it from the hadith of Sayyiduna Abu Hurayrah (may Allah be pleased with him), while its origin is in Sahih Muslim and elsewhere from the hadith of Sayyiduna Awf bin Malik (may Allah be pleased with him). Imam al-Bayhaqi says: "Many hadith are reported from the Prophet (peace and blessings be upon him), and then from Sayyiduna Umar, Sayyiduna Ali, Sayyiduna Ibn Umar, Sayyiduna Abu Hurayrah (may Allah be pleased with them) and others, concerning supplication in the funeral prayer, and no particular supplication is (obligatorily) fixed for the funeral prayer."
Hadith Takhrij«رواه أبو يعلى وأحمد بن حنبل والبيهقي في الكبرى بسند صحيح» «أخرجه سنن أبي داود برقم: 3201، وأخرجه صحيح ابن حبان برقم: 3070، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 8556، وأخرجه شرح السنة برقم: 1494، وأخرجه السنن الصغير للبيهقي برقم: 1086، وأخرجه مسند أحمد برقم: 22048، وأخرجه السنن الكبرى للنسائي برقم: 11151، وأخرجه شرح مشكل الآثار برقم: 966»