Language:
كتاب الجنائز
23  
Funerals (Al-Janaa'iz)
(5)
Chapter: Conveying the news of funeral (procession)
(5)
باب الإِذْنِ بِالْجَنَازَةِ
Sahih al-Bukhari 1247

Narrated Ibn `Abbas.:

A person died and Allah's Messenger (ﷺ) used to visit him. He died at night and (the people) buried him at night. In the morning they informed the Prophet (about his death). He said, "What prevented you from informing me?" They replied, "It was night and it was a dark night and so we disliked to trouble you." The Prophet (ﷺ) went to his grave and offered the (funeral) prayer.

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