‘Uqbah bin ‘Amir Al-Juhani said: “There are three times during the day when the Messenger of Allah (ﷺ) forbade us to offer the funeral prayer or bury our dead: When the sun has fully risen (until it is higher up in the sky); when it is overhead at noon, until it has passed the meridian: and when it is starting to set until it has set.”
It was narrated from Ibn ‘Abbas that the Messenger of Allah (ﷺ) placed a man in his grave at night, and he lit a lamp in his grave.
It was narrated from Jabir bin ‘Abdullah that the Messenger of Allah (ﷺ) said: “Do not bury your dead at night unless you are forced to.”
It was narrated from Jabir bin ‘Abdullah that the Prophet (ﷺ) said: “Offer the funeral prayer for your dead by night or by day.”