Funerals (Kitab Al-Jana'iz)

Dawud :: Book 20 : Hadith 3160

Narrated Malik ibn Hubayrah:

The Prophet (peace_be_upon_him) 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.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star