Yaseen - 36:39 And We appointed for the moon various stages until it turns into a dry palm branch.
How did He make the sun and the moon available to us?
The Cattle/6:96 He is the One who brings forth the morning. He has made the night a time of rest and the sun and the moon a means of calculation. This is the plan of the All-Supreme and All-Knowing.

Prophet Jonah/10:5 He made the sun a source of light and the moon a light. He has given it phases so that you may know the number of years and reckoning. Allah has created these only for a truth. This is how He explains the verses to a people who know.

Prophet Noah/71:16 He made the moon a light in them and the sun a lamp.

The Cow/2:189 They ask you about the phases of the moon. Say that it is a measure of time for mankind and for the pilgrimage. Goodness is not beating around the bush, goodness is abstinence. Be honest. Listen to Allah for your salvation.

Yaseen/36:39 And We appointed for the moon various stages until it turns into a dry palm branch.

The Criterion/25:45 Have you noticed how your Lord lengthens the shadow? Had He willed, He could have made it motionless. Indeed, We made the sun a proof for it (We made the existence of the shadow dependent on the light).