The Family Of Imran - 3:191
"Those who remember Allah while standing, sitting and lying on their sides. They think about the structure and creation of the heavens and the earth: "Our Lord, You did not create them in vain, You are exalted, protect us from the torment of the Fire."
Related:
The Bee/16:3
He created the heavens and the earth for a purpose. He is far greater than those they associate partners with.
The Prophets/21:16
We did not create the heavens and the earth and all that is between them for play.
The Prophets/21:17
If We had wished to have a pastime, We would have made it from Our own Presence. Yes, if We had wished such a thing!
The Arabic Letter Sad/38:27
We did not create the heavens and the earth and all that is between them in vain; that is the delusion of those who disbelieve. Woe to those who disbelieve, for they put themselves into the Fire.
The Smoke/44:38
We did not create the heavens and the earth and all that is between them for play and amusement.
The Smoke/44:39
We created them only for a purpose. But most of them do not know.