Jabir bin Abdullah reported,

The Prophet ﷺ gave a sermon one day and mentioned a man from among his companions who had passed away, been shrouded in an inadequate burial cloth, and buried at night. The Prophet ﷺ forbade burying a person at night before the funeral prayer had been performed over him, unless someone was compelled to do so by necessity. The Prophet ﷺ said, "When one of you shrouds his brother, let him shroud him well."

Azami 3623

Sahih

عن جابر بن عبد الله قال

إن النبي ﷺ خطب يوما فذكر رجلا من أصحابه قبض فكفن في كفن غير طائل، وقبر ليلا فزجر النبي ﷺ أن يقبر الرجل بالليل حتى يصلي عليه، إلا أن يضطر إنسان إلى ذلك. وقال النبي ﷺ: إذا كفن أحدكم أخاه فليحسن كفنه.

الأعظمي 3623صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Washing the deceased and shrouding him
Section
Improving the shroud of the deceased
Numbering
Jami al-Kamil 3623 (2nd edition)
Azami 3623