Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) used to recite this supplication in the funeral prayer: "O Allah! Forgive our living and our dead, those present and those absent, our young and our elderly, our men and our women. O Allah! Whomever You keep alive from among us, keep him alive upon faith, and whomever You cause to die from among us, cause him to die upon Islam."
Hadith Referenceصحیح ابن حبان / كتاب الجنائز وما يتعلق بها مقدما أو مؤخرا / 3070
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الأحكام» (157).فضيلة الشيخ العلّامة شُعيب الأرناؤوطرجاله ثقات رجال الصحيح إلا ان فيه عنعنة الوليد وقد توبع