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