"The Messenger of Allah delivered a Khutbah and mentioned a man among his Companions who had died and had been buried at night in a shroud that was not sufficient. The Messenger of Allah reprimanded them, telling them not to bury a person at night except in cases of emergency." (Using translation from Nasāʾī 2014)
أَنَّهُ سَمِعَ جَابِرًا يَقُولُ «خَطَبَ رَسُولُ اللهِ ﷺ فَذَكَرَ رَجُلًا مِنْ أَصْحَابِهِ مَاتَ فَقُبِرَ لَيْلًا وَكُفِّنَ فِي كَفَنٍ غَيْرِ طَائِلٍ فَزَجَرَ رَسُولُ اللهِ ﷺ أَنْ يُقْبَرَ إِنْسَانٌ لَيْلًا إِلَّا أَنْ يُضْطَرَّ إِلَى ذَلِكَ»