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)
عَنِ النَّبِيِّ ﷺ أَنَّهُ خَطَبَ يَوْمًا وَذَكَرَ رَجُلًا مِنْ أَصْحَابِهِ قُبِضَ وَكُفِّنَ فِي كَفَنٍ غَيْرِ طَائِلٍ وَقُبِرَ لَيْلًا فَزَجَرَ النَّبِيُّ ﷺ أَنْ يُقْبَرَ بِاللَّيْلِ حَتَّى يُصَلِّيَ عَلَيْهِ إِلَّا أَنْ يُضْطَرَّ الْإِنْسَانُ إِلَى ذَلِكَ وَقَالَ النَّبِيُّ ﷺ إِذَا كَفَّنَ أَحَدُكُمْ أَخَاهُ فَلْيُحْسِنْ كَفَنَهُ