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." (IT)
English reference (IT): Vol. 1, Book 6, Hadith 1530 (IT)
Arabic reference (IT): Book 6, Hadith 1597 (IT)