Now we know that we get day and night because of the constant rotation of Earth around the sun in an elliptical Orbit with the sun beeing permanently placed at one of its focui while the Earth actually revolves round itself. And the moon takes approximately "30"days to rotate round the Earth.It wasn't known until the Hubble Telescope confirmed the accuracy of the Quran as scientists proved that the sun moves through space in a circuit covering an enormous orbit that lasts over two hundred and sixty million yearsThe Holly Quran states and hints to some of these facts for over 1400 years ago:

In the name of Allah most gracious most merciful:

And He it is who created the night and the day, and the sun and the moon. They float, each in an orbit.

Allah indeed speaks the truth

REFERENCE: Chapter (The Prophits) verse "33"

(i.e.) Surrah XXI verse "33".

In the name of Allah most gracious most merciful:

and the sun runeth on unto a permanent place for it

Allah indeed speaks the truth