'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].