Sahih al-Bukhari 1317
Sahih al-Bukhari · Book 23: Funerals (Al-Janaa'iz) · Whoever aligned in two or three rows behind the Imam for a funeral Salat (Prayer)
Narrated Jabir bin `Abdullah:
حَدَّثَنَا مُسَدَّدٌ ، عَنْ أَبِي عَوَانَةَ ، عَنْ قَتَادَةَ ، عَنْ عَطَاءٍ ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ ـ رضى الله عنهما ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم صَلَّى عَلَى النَّجَاشِيِّ، فَكُنْتُ فِي الصَّفِّ الثَّانِي أَوِ الثَّالِثِ.
Allah's Messenger (ﷺ) offered the funeral prayer for An-Najashi and I was in the second or third row.