The Prophet ﷺ made a speech one day and mentioned a man from among his Companions who died and was shrouded in a shroud of bad quality, and was buried at night. The Prophet ﷺ rebuked that man be buried at night until prayer was offered over him, except that a man was forced to do that. The Prophet ﷺ said: When one of you shrouds his brother, he should use a shroud of good quality. (Using translation from Abū Dāʾūd 3148)
أَنَّ النَّبِيَّ ﷺ خَطَبَ يَوْمًا فَذَكَرَ رَجُلًا مِنْ أَصْحَابِهِ قُبِضَ وَكُفِّنَ فِي كَفَنٍ غَيْرِ طَائِلٍ وَقُبِرَ لَيْلًا فَزَجَرَ النَّبِيُّ ﷺ أَنْ يُقْبَرَ الرَّجُلُ بِاللَّيْلِ حَتَّى يُصَلَّى عَلَيْهِ إِلَّا أَنْ يُضْطَرَّ إِنْسَانٌ إِلَى ذَلِكَ وَقَالَ «إِذَا كَفَّنَ أَحَدُكُمْ أَخَاهُ فَلْيُحْسِنْ كَفَنَهُ»