Sunan Ibn Majah, Book 6, Hadith 56 (Ibn Majah 1488)

It was narrated from Abu Hurairah that the Prophet (ﷺ) said:

“Whoever has the funeral prayer offered for him by one hundred Muslims, he will be forgiven.”