The orbits of the sun and the moon are mentioned in the Quran since 1,400 years ago. Though it does not state the specifics of the rotations of these heavenly bodies (bodies in space), Quran does indicate that they rotate. And everything in space rotate for that matter and not only the Sun and the Moon.
The earth rotates around the sun, the Solar System rotates around the Milky Way, the Milky Way rotates around the centre of the universe. What the centre of the universe really is, is a matter of discussion till now.
The Quran states in Surah Yasin (Chapter 36) :
لَا الشَّمْسُ يَنبَغِي لَهَا أَن تُدْرِكَ الْقَمَرَ وَلَا اللَّيْلُ سَابِقُ النَّهَارِ وَكُلٌّ فِي فَلَكٍ يَسْبَحُونَ
Neither is it allowable to the sun that it should overtake the moon, nor can the night outstrip the day; and all float on in a sphere.
We are particularly interested in the phrase
…كُلٌّ فِي فَلَكٍ يَسْبَحُون
“…and all float in a sphere.”
Let’s look more closely at this phrase. Swim and float are written “يسبحون”, and start with the letter “ي”. Now let us look at the remaining phrase, “كل في فلك” and separate it into individual letters.
ك ل ف ي ف ل ك
We see that the letters form a palindrome (spelled the same forwards and backwards). The centre being the letter “ي”. In ancient Arabic this would be used to symbolise that “ي” is the centre and the rest of the letters are orbiting it. This illustration can be seen in the image above.
This is just one of the miracles of the Quran
Then do they not reflect upon the Qur’an? If it had been from [any] other than God, they would have found within it much contradiction.
 Nouman Ali Khan, NAKcollection, 19 July 2013, Rotating Heavenly Bodies ᴴᴰ ┇ Kinetic Typography ┇ Nouman Ali Khan, Retrieved from http://www.youtube.com/watch?v=x-zvbk-2ISk&list=PLB9DAD6B9EDAEE7BC&index=9