Abu Zubayr reported,

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

Azami 3775

Sahih

عن أبي الزبير

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

الأعظمي 3775صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Burial and its related matters
Section
Prohibition of burial at night, meaning so that the funeral prayer is not missed
Numbering
Jami al-Kamil 3775 (2nd edition)
Azami 3775