This is in the Quran
35: 41
إِنَّ اللَّهَ يُمْسِكُ السَّمَاوَاتِ وَالْأَرْضَ أَن تَزُولَا وَلَئِن زَالَتَا إِنْ أَمْسَكَهُمَا مِنْ أَحَدٍ مِّن بَعْدِهِ إِنَّهُ كَانَ حَلِيمًا غَفُورًا
The explanation:
(Surely, God holds back the heavens and the earth, that they escape not [the gravity of the sun]; and if they were to escape [the gravity of the sun], no one else than Him could hold them. He is Ever-Clement [and] Most Forgiving.)
The interpretation:
>> ( God holds back the heavens and the earth) means: He grasps the planets and the earth by the gravity of the sun,
>> ( that they escape not [the gravity of the sun] ) means: lest they should slip away from the sun, and scatter into the space.
>> ( and if they were to escape [the gravity of the sun], ) as will they do on Doomsday,
>> ( no one else than Him could hold them.) means: Can anyone –apart from God – hold them back? That is because if the planets escape the gravity of the sun, they will break up and become meteorites, then they will be attracted to the newly formed planets; because our sun will break up, on the Day of Doom, into planets; for this reason, God –be exalted- said:
إِنْ أَمْسَكَهُمَا مِنْ أَحَدٍ مِّن بَعْدِهِ
The explanation:
( no one else than Him could hold them.)
The meaning: If the planets escape from the gravity and break up, then God –be exalted –will hold these pieces by another gravitational force. The reason for the slipping of the planets from the gravity of the sun on Doomsday is that the sun will break up and its parts will scatter in the space.
The Universe and the Quran
In addition to that, God Most Gracious is All-Aware and is never heedless eventhough for one moment, and He does not sleep nor is He dizzy; this is according to the aya 2: 255
اللّهُ لاَ إِلَهَ إِلاَّ هُوَ الْحَيُّ الْقَيُّومُ لاَ تَأْخُذُهُ سِنَةٌ وَلاَ نَوْمٌ
The explanation:
(God! No god [to be worshipped] but He [alone], the Alive [Who dies not], the Disposer [in the affairs of the universe and creatures.]
Neither slumber [: the dizzyness just before sleep, like that overtaking souls] nor sleep [like that overtaking the living people] can overtake Him.)
And like the aya 23: 17
وَلَقَدْ خَلَقْنَا فَوْقَكُمْ سَبْعَ طَرَائِقَ وَمَا كُنَّا عَنِ الْخَلْقِ غَافِلِينَ
The explanation:
(And We have created above you seven passages [i.e. seven heavens, inhabited by seven races of genies or aliens]; nor are We heedless of creatures.)