The Qur’an repeats the mythology in vogue at the time of Mohammed. His thoughts reflect ancient teachings about the earth, the sun and the creation. These teachings can be traced in the well-known mythology of the people of the middle and Far East.
This is taken from Dr. Amari's book, Islam in light of History
Finding Comfort in Trials