Hadith 1675
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا صَلَّى عَلَى الْجَنَازَةِ قَالَ: «اللَّهُمَّ اغْفِرْ لِحَيِّنَا وَمَيِّتِنَا وَشَاهِدِنَا وَغَائِبِنَا وَصَغِيرِنَا وَكَبِيرِنَا وَذَكَرِنَا وَأُنْثَانَا. اللَّهُمَّ مَنْ أَحْيَيْتَهُ مِنَّا فَأَحْيِهِ عَلَى الْإِسْلَامِ وَمَنْ تَوَفَّيْتَهُ مِنَّا فَتَوَفَّهُ عَلَى الْإِيمَانِ. اللَّهُمَّ لَا تَحْرِمْنَا أَجْرَهُ وَلَا تَفْتِنَّا بَعْدَهُ» . رَوَاهُ أَحْمَدُ وَأَبُو دَاوُدَ وَالتِّرْمِذِيُّ وَابْنُ مَاجَهْ
He reported that when God’s messenger prayed over a bier he said, “O God, forgive those of us who are living and those of us who are dead, those of us who are present and those of us who are absent, our young and our old, our male and our female. O God, to whomsoever of us Thou givest life keep him faithful to Islam whilst Thou givest him life, and whomsoever of us Thou takest in death take him as a believer. O God, do not withhold from us the reward of faith (the Arabic is variously explained either as translated above, or as the reward of the man who has died, or of the believer. The text is ajrahu which means 'his reward’, or ‘its reward.’ Cf. Mir gat, ii, 365.), or try us after his death.” Ahmad, Abu Dawud, Tirmidhi and Ibn Majah transmitted it.