Bulugh al-Maram, Book 3, Hadith 590 (English) ⓘ
Abu Hurairah (RAA) narrated, ‘When the Messenger of Allah prayed a funeral prayer, he would say, "O Allah! Forgive those of us who are alive, and those who are dead, those present and those absent, those who are young and those who are male and those who are female. O Allah! Let those of us to whom You have given life, live in Islam, and let those of us You take back die in a state of faith. O Allah! Do not deprive us of our reward for (supplicating for) him, and cause us not to go astray after him." Related by Muslim and the four Imams.
وَعَنْ أَبِي هُرَيْرَةَ - رضى الله عنه - قَالَ: { كَانَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -إِذَا صَلَّى عَلَى جَنَازَةٍ يَقُولُ: "اَللَّهُمَّ اغْفِرْ لِحَيِّنَا, وَمَيِّتِنَا, وَشَاهِدِنَا, وَغَائِبِنَا, وَصَغِيرِنَا, وَكَبِيرِنَا, وَذَكَرِنَا, وَأُنْثَانَا, اَللَّهُمَّ مَنْ أَحْيَيْتَهُ مِنَّا فَأَحْيِهِ عَلَى اَلْإِسْلَامِ, وَمَنْ تَوَفَّيْتَهُ مِنَّا فَتَوَفَّهُ عَلَى اَلْإِيمَانِ, اَللَّهُمَّ لَا تَحْرِمْنَا أَجْرَهُ, وَلَا تُضِلَّنَا بَعْدَهُ } رَوَاهُ مُسْلِمٌ, وَالْأَرْبَعَةُ 1. 1 - صحيح. رواه أبو داود (3201)، والترمذي (1024)، وابن ماجه (1498)، وقد أعل هذا الحديث بما لا يقدح، وبيان ذلك في "الأصل". "تنبيه": وهو الحافظ في عزوه الحديث لمسلم.
also referenced under: Book 3, Hadith 34 (In-Book)