Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:1321Mūsá b. Ismāʿīl > ʿAbd al-Wāḥid > al-Shaybānī > ʿĀmir > Ibn ʿAbbās

Messenger of Allah ﷺ 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.  

البخاري:١٣٢١حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ حَدَّثَنَا عَبْدُ الْوَاحِدِ حَدَّثَنَا الشَّيْبَانِيُّ عَنْ عَامِرٍ عَنِ ابْنِ عَبَّاسٍ ؓ

أَنَّ رَسُولَ اللَّهِ ﷺ مَرَّ بِقَبْرٍ قَدْ دُفِنَ لَيْلاً فَقَالَ مَتَى دُفِنَ هَذَا قَالُوا الْبَارِحَةَ قَالَ أَفَلاَ آذَنْتُمُونِي قَالُوا دَفَنَّاهُ فِي ظُلْمَةِ اللَّيْلِ فَكَرِهْنَا أَنْ نُوقِظَكَ فَقَامَ فَصَفَفْنَا خَلْفَهُ قَالَ ابْنُ عَبَّاسٍ وَأَنَا فِيهِمْ فَصَلَّى عَلَيْهِ