שולחן ערוך, יורה דעה שנ״ז

Shulchan Arukh, Yoreh De'ah 357

איסור הלנת המת ומתי מותר להלינו. ובו ב' סעיפים:
אסור להלין המת אלא אם כן הלינו לכבודו להביא לו ארון ותכריכין או מקוננות או כדי שיבאו קרובים או להשמיע עיירות:
It is prohibited to leave the corpse [unburied] over night, unless they left him over night for the sake of his honour, [viz.,] to provide for him a coffin or shrouds, or [professional] lamenting women, or in order that relatives should [have time] to come, or to assemble [surrounding] townships [for his funeral].
כל המתים הממהר להוציא מטתו הרי זה משובח אבל על אביו ועל אמו ה"ז מגונה אא"כ היה ערב שבת או ערב יו"ט או שהיו גשמים מזלפים על מטתו:
[With respect to] all [other] dead, whoever removes the bier hurriedly is [considered] praiseworthy; for one's father or mother it is [considered] reprehensible, unless it was on the eve of the Sabbath or on the eve of a Festival, or if rain was pouring down on his bier.

Ashlei Ravrevei: Shulchan Aruch Yoreh Deah, Lemberg, 1888 (Public Domain) · Code of Hebrew Law by Chaim N. Denburg, Montreal, 1955 (CC-BY) · 2 se'ifim