Sunan an-Nasa'i, Book 21, Hadith 78 (In-Book)

It was narrated that Ibn Juraij said: "Abu Az-Zubair told me that he heard Jabir say; 'The Messenger of Allah delivered a speech and mentioned a man among his Companions who had died. He had been buried at night and wrapped in a shroud that was not sufficient. The Messenger of Allah rebuked (them) and said that no one should be buried at night unless constrained to do that. And the Messenger of Allah said: When one of you wants to takes care of his brother, let him shroud him well."'

أَخْبَرَنَا عَبْدُ الرَّحْمَنِ بْنُ خَالِدٍ الرَّقِّيُّ الْقَطَّانُ، وَيُوسُفُ بْنُ سَعِيدٍ، - وَاللَّفْظُ لَهُ - قَالَ أَنْبَأَنَا حَجَّاجٌ، عَنِ ابْنِ جُرَيْجٍ، قَالَ أَخْبَرَنِي أَبُو الزُّبَيْرِ، أَنَّهُ سَمِعَ جَابِرًا، يَقُولُ خَطَبَ رَسُولُ اللَّهِ صلى الله عليه وسلم فَذَكَرَ رَجُلاً مِنْ أَصْحَابِهِ مَاتَ فَقُبِرَ لَيْلاً وَكُفِّنَ فِي كَفَنٍ غَيْرِ طَائِلٍ فَزَجَرَ رَسُولُ اللَّهِ صلى الله عليه وسلم أَنْ يُقْبَرَ إِنْسَانٌ لَيْلاً إِلاَّ أَنْ يُضْطَرَّ إِلَى ذَلِكَ وَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ إِذَا وَلِيَ أَحَدُكُمْ أَخَاهُ فَلْيُحَسِّنْ كَفَنَهُ ‏" ‏ ‏.‏

sunnah.com