وَبِإِسْنَادِهِ ، عَنِ النَّبِيِّ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - أَنَّهُ كَانَ إِذَا صَلَّى عَلَى الْجِنَازَةِ ، قَالَ : اللَّهُمَّ عَبْدُكَ وَابْنُ عَبْدِكَ ، كَانَ يَشْهَدُ أَنْ لَا إِلَهَ إِلَّا أَنْتَ ، وَأَنَّ مُحَمَّدًا عَبْدُكَ وَرَسُولُكَ ، وَأَنْتَ أَعْلَمُ بِهِ ، إِنْ كَانَ مُحْسِنًا فَزِدْ فِي إِحْسَانِهِ ، وَإِنْ كَانَ مُسِيئًا فَاغْفِرْ لَهُ ، لَا تَحْرِمْنَا أَجْرَهُ ، وَلَا تَفْتِنَّا بَعْدَهُ .
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that whenever the Prophet (peace and blessings be upon him) led the funeral prayer over someone, he would make this supplication: '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; la tahrimna ajrahu wa la taftinna ba'dahu' (O Allah, this is Your servant and the son of one of Your servants. He used to bear witness that there is none worthy of worship but You, and that Muhammad (peace and blessings be upon him) is Your servant and Your Messenger, and You know his condition best. If he was a doer of good, then increase his good deeds; and if he was a wrongdoer, then forgive him. Do not deprive us of his reward, and do not put us to trial after him).