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.
For what truth has Allah created the heavens and the earth?
Prophet Hud/11:7
"He it is Who created the heavens and the earth in six days, to test which of you is the best in work. His sovereignty was over the waters. Nevertheless, if you say to the disbelievers, "You will be resurrected after death,"they will say, "This is only clear magic."
The Prophets/21:16
We did not create the heavens and the earth and all that is between them for play.
The Kneeling/45:22
Allah created the heavens and the earth for a purpose, so that every soul may be recompensed for what it has earned, without injustice.
The Sandhills/46:3
We did not create the heavens and the earth and all that is between them except for a purpose and for a definite term. Those who disbelieve do not heed the warning.
The Cave/18:7
We have adorned the earth with its materials to test who will be righteous.