Where does the Quran say that everything is in motion? Quran never says that our earth is in motion. Quran says that the sun and moon are in motion.
Why do people not read Quran before commenting on its content, anyway answer to your query is provided here under.
وَهُوَ الَّذِي خَلَقَ اللَّيْلَ وَالنَّهَارَ وَالشَّمْسَ وَالْقَمَرَ ۖ كُلٌّ فِي فَلَكٍ يَسْبَحُونَ
And it is He who created the night and the day and the Sun and the moon; all in an orbit are swimming. Surah Anbiya 21:33
خَلَقَ السَّمَاوَاتِ وَالْأَرْضَ بِالْحَقِّ ۖ يُكَوِّرُ اللَّيْلَ عَلَى النَّهَارِ وَيُكَوِّرُ النَّهَارَ عَلَى اللَّيْلِ ۖ وَسَخَّرَ الشَّمْسَ وَالْقَمَرَ ۖ كُلٌّ يَجْرِي لِأَجَلٍ مُسَمًّى ۗ أَلَا هُوَ الْعَزِيزُ الْغَفَّارُ
He hath created the heavens and the Earth with truth. He maketh night to succeed day, and He maketh day to succeed night, and He constraineth the Sun and the moon to give service, each running on for an appointed term. Is not He the Mighty, the Forgiver? Surah Zumar 39:5