Funerals (Kitab Al-Jana'iz)

Dawud :: Book 20 : Hadith 3195

Narrated AbuHurayrah:

When the Apostle of Allah (peace_be_upon_him) prayed over a dead person, he said: O Allah, 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 Allah, to whomsoever of us Thou givest life grant him life as a believer, and whomsoever of us Thou takest in death take him in death as a follower of Islam. O Allah, do not withhold from us the reward (of faith) and do not lead us astray after his death.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star