The Quran says that the heavens and the Earth were meshed together, tight and compact.
[Quran 21.30] Do not those who disbelieve see that the heavens and the Earth were meshed together then We ripped them apart? And then We made of water everything living? Would they still not believe?
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.
[Quran 51.47] And the heaven, We built it with craftsmanship and We are still expanding.
How could an illiterate man who lived 1400 years 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:
[Quran 7.187] 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.
[Quran 21.104] On the day when We will fold the heaven, like the folder compacts the books, and as We originated the first creation We shall return it; a promise (binding on Us); surely We will deliver.
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:
[Quran 16.77] To Allah belongs the unseen of the heavens and the earth. The coming of the Hour is only as the twinkling of the eye, or even nearer. Allah has power over everything.
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:
[Quran 14.48] On the day when Earth will be swapped by another Earth and so will be the heavens; and all (creatures) will resurrect before the One Dominant God.
[Quran 36.81] 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.