The universe was created by a Big Bang. The Quran says that the heavens and the Earth were meshed together, tight and compact.
٣٠ أَوَلَمْ يَرَ الَّذِينَ كَفَرُوا أَنَّ السَّمَاوَاتِ وَالْأَرْضَ كَانَتَا رَتْقًا فَفَتَقْنَاهُمَا ۖ وَجَعَلْنَا مِنَ الْمَاءِ كُلَّ شَيْءٍ حَيٍّ ۖ أَفَلَا يُؤْمِنُونَ
In the Quran the heavens expanded from a single point.
How could an illiterate man who lived 1400 years ago have known that the universe came from a Big Bang?
The universe has been expanding ever since the Big Bang.
How could an illiterate man who lived 1400 years ago have known about the expansion of the universe?
There are three possibilities to how the universe could end: Big Rip, Big Crunch or Big Chill. NASA recently ruled out the first scenario (No Big Rip; see also: Universe Today). This leaves the universe with only two possible endings: Big Crunch or Big Chill.
In the Quran God promises to make the Big Crunch:
They ask you about the Hour, "When will it come?" Say, "Knowledge of it rests with my Lord. None can reveal its coming except He. It weighs heavily on the heavens and the earth. It will not come upon you except suddenly." They ask you as if you are responsible for it. Say, "Knowledge of it rests with Allah," but most people do not know.
١٨٧ يَسْأَلُونَكَ عَنِ السَّاعَةِ أَيَّانَ مُرْسَاهَا ۖ قُلْ إِنَّمَا عِلْمُهَا عِنْدَ رَبِّي ۖ لَا يُجَلِّيهَا لِوَقْتِهَا إِلَّا هُوَ ۚ ثَقُلَتْ فِي السَّمَاوَاتِ وَالْأَرْضِ ۚ لَا تَأْتِيكُمْ إِلَّا بَغْتَةً ۗ يَسْأَلُونَكَ كَأَنَّكَ حَفِيٌّ عَنْهَا ۖ قُلْ إِنَّمَا عِلْمُهَا عِنْدَ اللَّهِ وَلَٰكِنَّ أَكْثَرَ النَّاسِ لَا يَعْلَمُونَ
The Quran used the term "weighs ثَقُلَتْ " which means by gravity. But from General Relativity we know that gravity is curvature of spacetime. We also know that wormholes are equivalent to folding spacetime like a book.
١٠٤ يَوْمَ نَطْوِي السَّمَاءَ كَطَيِّ السِّجِلِّ لِلْكُتُبِ ۚ كَمَا بَدَأْنَا أَوَّلَ خَلْقٍ نُعِيدُهُ ۚ وَعْدًا عَلَيْنَا ۚ إِنَّا كُنَّا فَاعِلِينَ
Here God promises to make this Big Crunch however by folding the heaven like a book.
So in one verse God promises to make the Big Crunch by gravity and in another verse by folding spacetime like a book. Since both verses are the same then in the Quran gravity is curvature of spacetime.
How could an illiterate man who lived 1400 years ago have known that gravity is curvature of spacetime?
This Big Crunch will begin and end before you can blink:
٧٧ وَلِلَّهِ غَيْبُ السَّمَاوَاتِ وَالْأَرْضِ ۚ وَمَا أَمْرُ السَّاعَةِ إِلَّا كَلَمْحِ الْبَصَرِ أَوْ هُوَ أَقْرَبُ ۚ إِنَّ اللَّهَ عَلَىٰ كُلِّ شَيْءٍ قَدِيرٌ
This Big Crunch will begin and end in a fraction of a second and will be by folding spacetime like a book. But this is the exact opposite of inflation in the Big Bang. Inflation was repulsive for a fraction of a second while in the Big Crunch God promises to make it attractive for a fraction of a second. "and as We originated the first creation We shall return it" so both are in a fraction of a second.
How could an illiterate man who lived 1400 years ago have known that inflation was for a fraction of a second?
Also after this Big Crunch is over, God promises to recreate those heavens and Earth once more before Judgment Day:
٤٨ يَوْمَ تُبَدَّلُ الْأَرْضُ غَيْرَ الْأَرْضِ وَالسَّمَاوَاتُ ۖ وَبَرَزُوا لِلَّهِ الْوَاحِدِ الْقَهَّارِ
Is He not, who created the heavens and the Earth, capable of creating others like them? Yes, indeed! He is the All-Knowing Creator. His command, if He wanted a thing, is that He only says to it, "BE" and it becomes! So glorified is He in whose hands is the dominion of all things, and to Him you shall be returned.
٨١ أَوَلَيْسَ الَّذِي خَلَقَ السَّمَاوَاتِ وَالْأَرْضَ بِقَادِرٍ عَلَىٰ أَنْ يَخْلُقَ مِثْلَهُمْ ۚ بَلَىٰ وَهُوَ الْخَلَّاقُ الْعَلِيمُ
٨٢ إِنَّمَا أَمْرُهُ إِذَا أَرَادَ شَيْئًا أَنْ يَقُولَ لَهُ كُنْ فَيَكُونُ
٨٣ فَسُبْحَانَ الَّذِي بِيَدِهِ مَلَكُوتُ كُلِّ شَيْءٍ وَإِلَيْهِ تُرْجَعُونَ
The Quran (Koran, the book of Islam) contains scientific knowledge that could not have been known 1400 years ago. It ranges from basic arithmetics to the most advanced topics in astrophysics. You are invited to go through those miracles and judge for yourself.