Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:25:47

And it is He who has made the night for you as clothing and sleep ˹a means for˺ rest and has made the day a resurrection.  

And He it is Who made for you the night as a garment, veiling ˹you˺ like a garment, and sleep for repose, rest for bodies through the ˹temporary˺ cessation of labour, and He made the day for rising, ˹a time˺ in which all rise to seek their livelihood and so on.
القرآن:٢٥:٤٧

وَهُوَ الَّذِي جَعَلَ لَكُمُ اللَّيْلَ لِبَاسًا وَالنَّوْمَ سُبَاتًا وَجَعَلَ النَّهَارَ نُشُورًا  

{وهو الذي جعل لكم الليل لباسا} ساترا كاللباس {والنوم سُباتا} راحة للأبدان بقطع الأعمال {وجعل النهار نشورا} منشورا فيه لابتغاء الرزق وغيره.