Surah Al-Anbiyaa

21:33

وَهُوَ ٱلَّذِى خَلَقَ ٱلَّيْلَ وَٱلنَّهَارَ وَٱلشَّمْسَ وَٱلْقَمَرَ ۖ كُلٌّۭ فِى فَلَكٍۢ يَسْبَحُونَ

And it is He who created the night and the day and the sun and the moon; all [heavenly bodies] in an orbit are swimming.

Tafsir 21:33

Allah alone is the One Who created the night for relaxation, created the day for earning one’s livelihood, created the sun as a sign of day, and the moon as a sign of night. The sun and moon both run in their specific orbits, without moving away or side-tracking.