He asked Abu Hurairah how he prayed over the dead, and Abu Hurairah replied, "By the life of Allah, I will tell you. I follow the body from the home of its family, and when it is set down I say the opening takbir, praise Allah, and invoke blessings upon His Prophet. Then I say, 'Allah, this is Your servant, the son of Your male servant and the son of Your female servant. He used to testify that there is no god but You and that Muhammad is Your servant and Your Messenger, and You know him best. Allah, if he did good, then increase him in his good, and if he did wrong, then overlook his wrongs. Allah, do not deprive us of the reward for him, and do not put us to trial after him.'"
حدثني يحيى عن مالك
أنه سأل أبا هريرة كيف تصلي على الجنازة فقال أبو هريرة أنا لعمر الله أخبرك أتبعها من أهلها فإذا وضعت كبرت وحمدت الله وصليت على نبيه ثم أقول اللهم إنه عبدك وابن عبدك وابن أمتك كان يشهد أن لا إله إلا أنت وأن محمدا عبدك ورسولك وأنت أعلم به اللهم إن كان محسنا فزد في إحسانه وإن كان مسيئا فتجاوز عن سيئاته اللهم لا تحرمنا أجره ولا تفتنا بعده