On the recommendation for many people to pray the funeral prayer and to make their rows three or more

Riyad as-Salihin (The Meadows of the Righteous)

by Imam Nawawi

156. Chapter: On the recommendation for many people to pray the funeral prayer and to make their rows three or more

932. 'A'isha reported that the Messenger of Allah, may Allah bless him and grant him peace, said, "No dead person is prayed over by a group of Muslims whose number reaches a hundred, all of whom intercede for him, without their intercession for him being granted." [Muslim]

933. Ibn 'Abbas said, "I heard the Messenger of Allah, may Allah bless him and grant him peace, say, 'No Muslim man dies with forty men who do not associate anything with Allah standing at his funeral, without Allah granting them intercession for him." [Muslim]

934. Marthad ibn 'Abdullah al-Yazani said, "When Malik ibn Hubayra prayed at a funeral and saw there were only a few people there, he would arrange them into three rows for it. Then he said, 'The Messenger of Allah said, 'The Garden is mandatory for anyone whose funeral prayer consists of three rows."'" [Abu Dawud and at-Tirmidhi]