Mishkat al-Masabih 1687
وَعَنْ مَالِكِ بْنِ هُبَيْرَةَ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «مَا مِنْ مُسْلِمٍ يَمُوتُ فَيُصَلِّي عَلَيْهِ ثَلَاثَةُ صُفُوفٍ مِنَ الْمُسْلِمِينَ إِلَّا أَوْجَبَ» . فَكَانَ مَالِكٌ إِذَا اسْتَقَلَّ أَهْلَ الْجَنَازَةِ جَزَّأَهُمْ ثَلَاثَةَ صُفُوفٍ لِهَذَا الْحَدِيثِ. رَوَاهُ أَبُو دَاوُدَ وَفِي رِوَايَةِ التِّرْمِذِيِّ: قَالَ كَانَ مَالِكُ بْنُ هُبَيْرَةَ إِذَا صَلَّى الْجِنَازَة فَتَقَالَّ النَّاسَ عَلَيْهَا جَزَّأَهُمْ ثَلَاثَةَ أَجْزَاءٍ ثُمَّ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ صَلَّى عَلَيْهِ ثَلَاثَةُ صُفُوفٍ أَوْجَبَ» . وروى ابْن مَاجَه نَحوه
From Malik ibn Hubayrah, who said: I heard the Messenger of Allah ﷺ say: "There is no Muslim who dies and three rows of Muslims pray over him, except that [Paradise] becomes due [for him]." So when Malik found the people at a funeral few, he would divide them into three rows because of this hadith. Reported by Abu Dawud. In the narration of at-Tirmidhi, he said: When Malik ibn Hubayrah prayed the funeral prayer and found the people few, he divided them into three parts, then said: The Messenger of Allah ﷺ said: "Whoever is prayed over by three rows, [Paradise] becomes due [for him]." Ibn Majah reported something similar.