Jami` at-Tirmidhi 1024
جامع الترمذي#1024SahihAbu Ibrahim Al-Ashhali narrated :from his father who said: "When the Messenger of Allah would perform the Salat for the funeral he would said: (Allahammaghfir li-hayyina wa mayyittina, wa shahidina wa gha'ibina, wa saghirina wa kabirina, wa dhakarina wa unthana) 'O Allah! Forgive our living and our deceased, our present and our absent, our young and our old, our male and our female
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Ahmad Muhammad ShakirSahih
Al-AlbaniSahih
Bashar Awad MaaroufHasan Sahih
Zubair Ali ZaiSahih
In-book reference: 10:60