The greater the number of those praying, the greater the benefit to the deceased.
➊ It is narrated from Aisha (may Allah be pleased with her) that the Prophet ﷺ said:
ما من ميت يصلى عليه أمة من المسلمين يبلغون مائة كلهم يشفعون له إلا شفعوا فيه
“If a group of Muslims whose number reaches one hundred (100) prays the funeral prayer over a deceased person, and all of them intercede for him, then their intercession for him (the deceased) is accepted.”
➊ In a narration from Ibn Abbas (may Allah be pleased with them both), forty (40) monotheists who do not associate anything with Allah in worship take part in the funeral prayer:
إلا شفعهم الله فيه
“Then Allah the Exalted will certainly accept the intercession of all of them for that deceased person.”