Language:
كتاب الجنائز
23  
Funerals (Al-Janaa'iz)
(55)
Chapter: The lining up of boys in rows with men in the funeral
(55)
باب صُفُوفِ الصِّبْيَانِ مَعَ الرِّجَالِ عَلَى/فِي الْجَنَائِزِ
Sahih al-Bukhari 1321

Narrated Ibn `Abbas:

Allah's Messenger (ﷺ) passed by a grave of a deceased who had been buried at night. He said, "When was this (deceased) buried?" The people said, "Yesterday." He said, "Why did you not inform me?" They said, "We buried him when it was dark and so we disliked to wake you up." He stood up and we lined up behind him. (Ibn `Abbas said): I was one of them, and the Prophet (ﷺ) offered the funeral prayer.

حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا عَبْدُ الْوَاحِدِ، حَدَّثَنَا الشَّيْبَانِيُّ، عَنْ عَامِرٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم مَرَّ بِقَبْرٍ قَدْ دُفِنَ لَيْلاً فَقَالَ ‏"‏ مَتَى دُفِنَ هَذَا ‏"‏‏.‏ قَالُوا الْبَارِحَةَ‏.‏ قَالَ ‏"‏ أَفَلاَ آذَنْتُمُونِي ‏"‏‏.‏ قَالُوا دَفَنَّاهُ فِي ظُلْمَةِ اللَّيْلِ فَكَرِهْنَا أَنْ نُوقِظَكَ‏.‏ فَقَامَ فَصَفَفْنَا خَلْفَهُ‏.‏ قَالَ ابْنُ عَبَّاسٍ وَأَنَا فِيهِمْ فَصَلَّى عَلَيْهِ‏.‏
Reference : Sahih al-Bukhari 1321
In-book reference : Book 23, Hadith 78
USC-MSA web (English) reference : Vol. 2, Book 23, Hadith 407
  (deprecated numbering scheme)