The analogy of this worldly life is like this: we send down water from the sky to produce with it all kinds of plants from the earth, and to provide food for the people and the animals. Then, just as the earth is perfectly adorned, and its people think that they are in control thereof, our judgment comes by night or by day,* leaving it completely barren, as if nothing existed the previous day. We thus explain the revelations for people who reflect.
إِنَّما مَثَلُ الحَيوٰةِ الدُّنيا كَماءٍ أَنزَلنٰهُ مِنَ السَّماءِ فَاختَلَطَ بِهِ نَباتُ الأَرضِ مِمّا يَأكُلُ النّاسُ وَالأَنعٰمُ حَتّىٰ إِذا أَخَذَتِ الأَرضُ زُخرُفَها وَازَّيَّنَت وَظَنَّ أَهلُها أَنَّهُم قٰدِرونَ عَلَيها أَتىٰها أَمرُنا لَيلًا أَو نَهارًا فَجَعَلنٰها حَصيدًا كَأَن لَم تَغنَ بِالأَمسِ كَذٰلِكَ نُفَصِّلُ الـٔايٰتِ لِقَومٍ يَتَفَكَّرونَ
innamaa masalul hayaatid dunyaa ka maaa’in anzalnaahu minas samaaa’i fakhtalata bihee nabaatul ardi mimmaa ya’kulun naasu wal an’aam; hattaaa izaaa akhazatil ardu zukhrufahaa wazzayyanat wa zanna ahluhaaa annahum qaadiroona ‘alaihaaa ataahaaa amrunaa lailan aw nahaaran faja’alnaahaa haseedan ka ‘an lam taghna bil-ams; kazaalika nufassilul aayaati liqawminy yatafakkaroon
*10:24 God, of course, knows whether His judgment will come during the day, or during the night. But it just happens that the earth will be half day and half night when the end of the world comes. Another “scientific miracle” of the Quran.