Surah Yunus 10:5
هُوَ ٱلَّذِى جَعَلَ ٱلشَّمْسَ ضِيَآءً وَٱلْقَمَرَ نُورًا وَقَدَّرَهُۥ مَنَازِلَ لِتَعْلَمُوا۟ عَدَدَ ٱلسِّنِينَ وَٱلْحِسَابَ ۚ مَا خَلَقَ ٱللَّهُ ذَٰلِكَ إِلَّا بِٱلْحَقِّ ۚ يُفَصِّلُ ٱلْـَٔايَـٰتِ لِقَوْمٍ يَعْلَمُونَ
It is He who made the sun a shining light and the moon a derived light and determined for it phases - that you may know the number of years and account [of time]. Allāh has not created this except in truth. He details the signs for a people who know.
Translation: Saheeh International
Tafsir
He it is Who made the sun a radiance that is emitting light and the moon a light and determined it with respect to its movement in stations 28 stations in 28 nights every month becoming concealed for two nights when a particular month has 30 days or concealed for one night when it has 29 days so that you might know …
Excerpt from Tafsir al-Jalalayn, commentary on 10:5, via Quran.com. The reader has the full commentary and 9 more tafsirs.