Allah strikes the follow parable in surah Yunus:
إِنَّمَا مَثَلُ الْحَيَاةِ الدُّنْيَا كَمَاءٍ أَنزَلْنَاهُ مِنَ السَّمَاءِ فَاخْتَلَطَ بِهِ نَبَاتُ الْأَرْضِ مِمَّا يَأْكُلُ النَّاسُ وَالْأَنْعَامُ حَتَّىٰ إِذَا أَخَذَتِ الْأَرْضُ زُخْرُفَهَا وَازَّيَّنَتْ وَظَنَّ أَهْلُهَا أَنَّهُمْ قَادِرُونَ عَلَيْهَا أَتَاهَا أَمْرُنَا لَيْلًا أَوْ نَهَارًا فَجَعَلْنَاهَا حَصِيدًا كَأَن لَّمْ تَغْنَ بِالْأَمْسِ ۚ كَذَٰلِكَ نُفَصِّلُ الْآيَاتِ لِقَوْمٍ يَتَفَكَّرُونَ
The example of this worldly life is like water which We have sent down from the sky which then mixed with the earth’s vegetation, which people and beasts of burden then eat. Then, when the earth has taken on its adornment and become beautiful and its people think that they have control over it, Our command comes by night or by day and We make it barren, as if it had not been there yesterday. In this way do We explain the signs for people who reflect. [10:24]
Commenting on this in a longer discussion on the parables of the Qur’an, the great scholar ibn al-Qayyim wrote:
شبه سبحانه الحياة الدنيا في أنها تتزين في عين الناظر فتروقه بزينتها وتعجبه فيميل إليها ويهواها اغترارا منه بها حتى إذا ظن أنه مالك لها قادر عليها سلبها بغتة أحوج ما كان إليها وحيل بينه وبينها
Allah has made this comparison to the life of this world in that this worldly life appears beautiful to the eye of the beholder and he is pleased and impressed with its beauty and thus finds himself inclined to it and captivated by it, so much so that he becomes deceived by it. Then once he thinks that he has control and ownership over it, suddenly it is taken away from him just he needs it the most and he cannot get it back.
فشبهها بالأرض الذي ينزل الغيث عليها فتعشب ويحسن نباتها ويروق منظرها للناظر فيغتر به ويظن أنه قادر عليها مالك لها فيأتيها أمر الله فتدرك نباتها الآفة بغتة فتصبح كأن لم تكن قبل فيخيب ظنه وتصبح يداه صفرا منهما فهكذا حال الدنيا والواثق بها سواءوهذا من أبلغ التشبيه والقياس. ـ
So Allah compared this to the earth upon which the rain falls and then grows vegetation which becomes beautiful and pleasing to look at until the beholder becomes deceived into thinking that he has power and ownership over it. Then the command of Allah comes and the plants are suddenly struck with disease and it becomes as if they were never there. So his thinking had betrayed him and he winds up empty-handed.