Malik bin Hubayra reported,

He was a companion of the Prophet. He said that whenever a funeral was brought to him and he found those following it to be few, he would arrange them into three rows and then perform the prayer over the deceased. He would say, "The Messenger of Allah ﷺ said, 'No deceased person has three rows of Muslims pray over him except that it is granted.'"

Ibn Majah 1490

Daif

حدثنا أبو بكر بن أبي شيبة وعلي بن محمد قالا حدثنا عبد الله بن نمير عن محمد بن إسحق عن يزيد بن أبي حبيب عن مرثد بن عبد الله اليزني

عن مالك بن هبيرة الشامي

وكانت له صحبة قال كان إذا أتي بجنازة فتقال من تبعها جزأهم ثلاثة صفوف ثم صلى عليها وقال إن رسول الله ﷺ قال ما صف صفوف ثلاثة من المسلمين على ميت إلا أوجب

ابن ماجه 1490ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Funerals
Chapter
Those upon whom a group of Muslims prayed the funeral prayer
Numbering
Darussalam 1490
Ibn Majah 1490