The first part of verses 31:10 and 13:2 say that God created the skies with invisible pillars. What can be considered as invisible pillars supporting all galaxies and everything in the universe? Only now in the 20th century, scientists have proven the role of invisible Dark Matter & Dark Energy as the glue keeping the universe together while Quran stated the same amazing fact more than 1400 years ago!
The 2nd part of the verse 31:10 indicates that God planted or placed some kind of anchors or nails in the Earth to secure & stabilize it. This part of the verse is also related to the mountains acting as pegs. Scientifically, the anchors could be mountains, gravitational & magnetic fields, and Dark Matter Hair filaments extending deep into the planet Earth and the Dark Matter woven in the Milky Way (described in the "Science" section on the top of this page). The glue that secures the Earth!
ٱللَّهُ ٱلَّذِى رَفَعَ ٱلسَّمَـٰوَٰتِ بِغَيْرِ عَمَدٍ تَرَوْنَهَا ثُمَّ ٱسْتَوَىٰ عَلَى ٱلْعَرْشِ وَسَخَّرَ
ٱلشَّمْسَ وَٱلْقَمَرَ كُلٌّ يَجْرِى لِأَجَلٍ مُّسَمًّى يُدَبِّرُ ٱلْأَمْرَ يُفَصِّلُ ٱلْـَٔايَـٰتِ لَعَلَّكُم بِلِقَآءِ رَبِّكُمْ تُوقِنُونَ
"It is Allah who erected the heavens with invisible pillars; then He established Himself with power over everything and made subject the sun and the moon, each running [its course] for a specified term. He arranges [each] matter; He details the signs that you may, of the meeting with your Lord, be certain." 13:2
خَلَقَ ٱلسَّمَـٰوَٰتِ بِغَيْرِ عَمَدٍ تَرَوْنَهَا وَأَلْقَىٰ فِى ٱلْأَرْضِ رَوَٰسِىَ أَن تَمِيدَ بِكُمْ
وَبَثَّ فِيهَا مِن كُلِّ دَآبَّةٍ وَأَنزَلْنَا مِنَ ٱلسَّمَآءِ مَآءً فَأَنۢبَتْنَا فِيهَا مِن كُلِّ زَوْجٍ كَرِيمٍ
"He created the heavens with invisible pillars (support) and has cast anchors into the earth firmly
, lest it should shift with you, and dispersed therein from every creature. And We sent down rain from the sky and made grow therein plants of every fine & useful kind." 31:10
إِنَّ ٱللَّهَ يُمْسِكُ ٱلسَّمَـٰوَٰتِ وَٱلْأَرْضَ أَن تَزُولَا وَلَئِن زَالَتَآ إِنْ أَمْسَكَهُمَا مِنْ أَحَدٍ مِّنۢ بَعْدِهِۦٓ إِنَّهُۥ كَانَ حَلِيمًا غَفُورًا
"Indeed, Allah holds the heavens and the Earth, lest they cease. And if they should cease,
no one could hold them [in place] after Him. Indeed, He is Forbearing and Forgiving." 35:41
فَقَضَىٰهُنَّ سَبْعَ سَمَـٰوَاتٍ فِى يَوْمَيْنِ وَأَوْحَىٰ فِى كُلِّ سَمَآءٍ أَمْرَهَا وَزَيَّنَّا ٱلسَّمَآءَ ٱلدُّنْيَا بِمَصَـٰبِيحَ وَحِفْظًا ذَٰلِكَ تَقْدِيرُ ٱلْعَزِيزِ ٱلْعَلِيمِ
"And He [it is who] decreed that they become seven heavens in two eons, and imparted unto each heaven its function.
And We adorned the (the 1st one) sky nearest to the Earth with lights, and made them secure (for Earth):
such is the ordaining & engineering of the Almighty, the All-Knowing." 41:12
وَمِنْ ءَايَـٰتِهِۦٓ أَن تَقُومَ ٱلسَّمَآءُ وَٱلْأَرْضُ بِأَمْرِهِۦ ثُمَّ إِذَا دَعَاكُمْ دَعْوَةً مِّنَ ٱلْأَرْضِ إِذَآ أَنتُمْ تَخْرُجُونَ
and of His signs is that the heaven and Earth remain (secure & functioning) by His command..." 30:25