Riyad as-Salihin

'Aishah (May Allah be pleased with her) reported: The Messenger of Allah (ﷺ) said, "If a group of Muslims numbering a hundred perform funeral prayer over a dead person, and all of them ask Allah's forgiveness for him, their prayer for him will be accepted."

[Muslim].

عن عائشة رضي الله عنها، قالت: قال رسول الله صلى الله عليه وسلم: “ما من ميت يصلي عليه أمة من المسلمين يبلغون مائة كلهم يشفعون له إلا شفعوا فيه“ ((رواه مسلم).