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:14:33

And He subjected for you the sun and the moon, continuous ˹in orbit˺, and subjected for you the night and the day.  

And He has disposed for you the sun and the moon, constant, moving in their courses without pause; and He has disposed for you the night, that you may rest therein, and the day, that you may seek of His bounty therein.
القرآن:١٤:٣٣

وَسَخَّرَ لَكُمُ الشَّمْسَ وَالْقَمَرَ دَائِبَيْنِ ۖ وَسَخَّرَ لَكُمُ اللَّيْلَ وَالنَّهَارَ  

{وسخر لكم الشمس والقمر دائبين} جاريين في فلكهما لا يفتران {وسخر لكم الليل} لتسكنوا فيه {والنهار} لتبتغوا فيه من فضله.