And of His signs are the night and day and the sun and moon. Do not prostrate to the sun or to the moon, but prostrate to Allāh, who created them, if it should be Him that you worship.1
Translation: Saheeh International (English)
1 i.e., Do not worship Allāh through His creations but worship Him directly and exclusively.
From the signs of Allah that point towards His greatness and oneness is the night and the day in their coming after one another, and the sun and moon. O people! Do not prostrate to the sun nor the moon; rather, prostrate to Allah alone who created them all, if you truly do worship Him.