Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) narrates from the Prophet (peace and blessings be upon him) that one day he delivered a sermon and mentioned a man from among his Companions who had died and had been wrapped in a shroud that was not of good quality, and he had been buried at night. The Prophet (peace and blessings be upon him) rebuked them for burying him at night, so that he (the Prophet (peace and blessings be upon him) himself) might have performed his funeral prayer, unless a person is compelled to do so. And the Prophet (peace and blessings be upon him) said: "When one of you shrouds his brother, let him give him a good shroud."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6694