Sahih al-Bukhari 1318
Sahih al-Bukhari · Book 23: Funerals (Al-Janaa'iz) · The rows for a funeral prayer
Narrated Abu Huraira:
حَدَّثَنَا مُسَدَّدٌ ، حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ ، حَدَّثَنَا مَعْمَرٌ ، عَنِ الزُّهْرِيِّ ، عَنْ سَعِيدٍ ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ قَالَ نَعَى النَّبِيُّ صلى الله عليه وسلم إِلَى أَصْحَابِهِ النَّجَاشِيَّ، ثُمَّ تَقَدَّمَ فَصَفُّوا خَلْفَهُ فَكَبَّرَ أَرْبَعًا.
The Prophet (p.b.u.h) informed his companions about the death of An-Najashi and then he went ahead (to lead the prayer) and the people lined up behind him in rows and he said four Takbir.