It is narrated from Hazrat Abu Qatadah (may Allah be pleased with him) that once the Noble Prophet (peace and blessings be upon him) led a funeral prayer, and I was also present. I heard the Noble Prophet (peace and blessings be upon him) supplicating: O Allah! Forgive our living and our deceased, those present and those absent, our young and our old, and our men and our women. Abu Salamah has also narrated this addition: O Allah! Whomever You keep alive from among us, keep him alive upon Islam, and whomever You cause to die from among us, cause him to die upon faith.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 22554
Hadith Gradingحکم دارالسلام:حديث أبى قتادة غير محفوظ، وأصح شيء فى هذا الباب حديث عوف بن مالك