It is a certain fact that the Earth orbits the Sun and the Earth rotates around its own axis. You can prove that from inside earth using a Foucault's pendulum.
 It is also a certain fact that the Moon and the Sun also have their own orbits.
 Ancient Muslim scholars agreed that Earth is stationary and the Sun and the Moon orbit the Earth. Even in 1983, Ibn Baz wrote his book to prove that the Earth is stationary while the Sun and the Moon are moving.
Note: when Muslim scholars mention the Sun's movement, they do not mean that the modern understanding of how the Sun is orbiting the Milky Way. No. They mean that the Earth is stationary and the Sun moves around the Earth and thus we have day and night.
 Contemporary Muslim scholars, especially the proponents of scientific miracles in the Quran, believe that the Quran does mention the Earth's movement and the strongest evidence they provide is verse 27:88. Note on that verse. That verse is clearly referring to judgment day.
The problem is: How could all ancient Muslim scholars (the linguists, the scientists, the mufasirs, etc) agree that the Earth is stationary? Clearly, their agreement comes from their understanding of Quranic verses and Hadiths.
There are many verses that clearly support the belief of the ancient Muslim scholars. Examples: 13:2, 27:61.
Some contemporary Muslims say that the Quran is not a science book. I agree. But the problem is not solved. We have ancient scholars understanding with clear evidence from the Quran that directly conflicts what we observe.