The Prophet (ﷺ) said: If any Muslim dies and three rows of Muslims pray over him, it will…

Sunan Abu Dawud Book 21 Hadith 78

Sunan Abu Dawud #3166

Funerals (Kitab Al-Jana'iz) 21:78

Narrated Malik ibn Hubayrah:

The Prophet (ﷺ) said: If any Muslim dies and three rows of Muslims pray over him, it will assure him (of Paradise). When Malik considered those who accompanied a bier to be a few, he divided them into three rows in accordance with this tradition.

Chapter: Rows In The Funeral Prayer