ذِكْرُ الْأَمْرِ لِمَنْ وَلِيَ أَمْرَ أَخِيهِ الْمُسْلِمِ أَنْ يُحْسِنَ كَفَنَهُ
Messenger of Allah ﷺ one day in the course of his sermon made mention of a person among his Companions who had died and had been wrapped in a shroud not long (enough to cover his whole body) and was buried during the night. The Apostle of Allah ﷺ reprimanded (the audience) that a person was buried during the night (in a state that) funeral prayer could not be offered (over him by the Messenger of Allah). (And this is permissible only) when it becomes a dire necessity for a man. The Apostle of Allah ﷺ also said: When any one of you shrouds his brother, he should shroud him well. (Using translation from Muslim 943)
إِنَّ النَّبِيَّ ﷺ خَطَبَ يَوْمًا فَذَكَرَ رَجُلًا مِنْ أَصْحَابِهِ قُبِضَ فَكُفِّنَ فِي كَفَنٍ غَيْرِ طَائِلٍ وَقُبِّرَ لَيْلًا فَزَجَرَ النَّبِيُّ ﷺ أَنْ يُقْبَرَ الرَّجُلُ بِلَيْلٍ أَوْ يُصَلَّى عَلَيْهِ إِلَّا أَنْ يُضْطَرَّ إِلَى ذَلِكَ وَقَالَ «إِذَا وَلِيَ أَحَدُكُمْ أَخَاهُ فَلْيُحْسِنْ كَفَنَهُ»