لَوْ كَانَ فِيهِمَا آلِهَةٌ إِلَّا اللَّهُ لَفَسَدَتَا فَسُبْحَانَ اللَّهِ رَبِّ الْعَرْشِ عَمَّا
21:22 If there were other gods besides God, there would have been chaos in both, the heavens and earth. Glorified is God, the Lord of Supreme Control, above all that they contrive. [3:84, 6:3, 16:51, 39:67]
Rule is simple there can never be chaos in Divine given thing. If there is a Chaos it means other gods are operating.
Pls read following verses
الْحَمْدُ لِلَّهِ الَّذِي أَنزَلَ عَلَى عَبْدِهِ الْكِتَابَ وَلَمْ يَجْعَل لَّهُ عِوَجَا
18:1 All beauty and balance in the Universe is the living evidence that God is Praiseworthy. All praise is for God Who has revealed this Book to His servant, and made it flawless.
قَيِّمًا لِّيُنذِرَ بَأْسًا شَدِيدًا مِن لَّدُنْهُ وَيُبَشِّرَ الْمُؤْمِنِينَ الَّذِينَ يَعْمَلُونَ الصَّالِحَاتِ أَنَّ لَهُمْ أَجْرًا حَسَنًا
18:2 A Perfect Book, unerringly straight, meant to warn people of the destructive results of their wrongdoings. And to give good news to those who believe in the message and make reforms in their individual and collective lives, that theirs shall be a generous reward.
The book is perfect so its teachings can never lead to Chaos .Teachings of this book guarantee same beauty and balance on earth as we see in the Universe.