We created not the heavens and the earth and all that is between them for a (mere) play .
Had We intended to take a pastime (i.e. a wife or a son, etc.), We could surely have taken it from Us, if We were going to do (that).
Nay, We fling (send down) the truth (this Quran) against the falsehood (disbelief), so it destroys it, and behold, it (falsehood) is vanished. And woe to you for that (lie) which you ascribe (to Us) (against Allah by uttering that Allah has a wife and a son).
Chapter 21 Al-‘Anbiyā’ : Verses 16-18
Creation was made with Justice and Wisdom
Allah tells us that He created the heavens and the earth in truth, i.e. with justice.
(that He may requite those who do evil with that which they have done, and reward those who do good, with what is best.) ﴿53:31﴾. He did not create all that in vain or for (mere) play:
(And We created not the heaven and the earth and all that is between them without purpose! That is the consideration of those who disbelieve! Then woe to those who disbelieve from the Fire!) (38:27)
(Had We intended to take a pastime, We could surely have taken it from Us, if We were going to do (that).) Ibn Abi Najih said, narrating from Mujahid:
(Had We intended to take a pastime, We could surely have taken it from Us,) “Meaning, `From Ourself,’ He is saying, `We would not have created Paradise or Hell or death or the resurrection or the Reckoning.”’
(if We were going to do (that). ) Qatadah, As-Suddi, Ibrahim An-Nakha`i and Mughirah bin Miqsam said: “This means, `We will not do that.”’ Mujahid said, every time the word
(if) is used in the Qur’an, it is a negation.
(Nay, We fling the truth against the falsehood,) means, `We explain the truth and thus defeat falsehood.’ Allah says:
(so it destroys it, and behold, it disappears.) it is fading and vanishing.
(And woe to you) O you who say that Allah has offspring.
(for that which you ascribe.) that which you say and fabricate. Then Allah informs of the servitude of the angels, and how they persevere in worship night and day.