It wasnarrated that Ibn 'Abbas said:
"A man died whom the MessengerofAllah (ﷺ) used to visit, and they buried him at night. Whenmorningcame, they told him. He said: 'What kept you from telling me?'They said: 'It was night and it was dark, and we did not like tocauseyou any inconvenience.' Then he went to the grave and offeredthefuneral prayer for him."
English reference: Vol. 1, Book 6, Hadith 1530
Arabic reference: Book 6, Hadith 1597