It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that when the Prophet (peace and blessings be upon him) offered the funeral prayer over a deceased person, he would say: 'Allahummaghfir li-hayyina wa mayyitina, wa li-dhakarina wa unthana, wa li-saghirina wa kabirina, man ahyaytahu minna fa-ahyihi 'ala al-Islam, wa man tawaffaytahu minna fa-tawaffahu 'ala al-iman, Allahumma 'afwaka 'afwaka' (O Allah, forgive our living and our dead, our males and our females, and our young and our old. O Allah, whomever of us You keep alive, keep him alive upon Islam, and whomever You cause to die, cause him to die upon faith. O Allah, I seek only Your pardon and forgiveness).
Only al-Ala' narrated this hadith from Habib, and Ata is alone in narrating it from him.
Hadith Referenceالمعجم الأوسط / باب الألف / 1136
Hadith Takhrij«أخرجه الطبراني فى «الكبير» برقم: 12680»