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:22:61

That is because Allah causes the night to enter the day and causes the day to enter the night and because Allah is Hearing and Seeing.  

That, help, is because God makes the night pass into the day and makes the day pass into the night, that is to say, He makes each enter into the other by increasing the one ˹and decreasing the other˺, which is a sign of His power, exalted be He, ˹the same power˺ that produces ˹His˺ help, and because God is Hearer, of the supplications of believers, Seer, of them, giving them faith and responding to their supplications.
القرآن:٢٢:٦١

ذَٰلِكَ بِأَنَّ اللَّهَ يُولِجُ اللَّيْلَ فِي النَّهَارِ وَيُولِجُ النَّهَارَ فِي اللَّيْلِ وَأَنَّ اللَّهَ سَمِيعٌ بَصِيرٌ  

{ذلك} النصر {بأن الله يولج الليل في النهار ويولج النهار في الليل} أي يدخل كلا منهما في الآخر بأن يزيد به، من أثر قدرته تعالى التي بها النصر {وأن الله سميع} دعاء المؤمنين {بصير} بهم حيث جعل فيهم الإيمان فأجاب دعائهم.