Abdullah bin Abbas reported,

The Messenger of Allah ﷺ passed by a grave of someone who had been buried at night and asked, "When was this person buried?"They replied, "Last night."He said, "Why did you not inform me?"They answered, "We buried him in the darkness of the night and disliked waking you."So he stood, and we formed rows behind him. Ibn Abbas said, "I was among them," and he prayed over the deceased.

Bukhari 1321

Sahih

حدثنا موسى بن إسماعيل حدثنا عبد الواحد حدثنا الشيباني عن عامر

عن ابن عباس رضي الله عنهما

أن رسول الله ﷺ مر بقبر قد دفن ليلا فقال متى دفن هذا قالوا البارحة قال أفلا آذنتموني قالوا دفناه في ظلمة الليل فكرهنا أن نوقظك فقام فصففنا خلفه قال ابن عباس وأنا فيهم فصلى عليه

البخاري 1321صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
Rows of boys with men at funerals
Numbering
Darussalam 1321
Bukhari 1321