وَٱضْرِبْ لَهُم مَّثَلًا رَّجُلَيْنِ جَعَلْنَا لِأَحَدِهِمَا جَنَّتَيْنِ مِنْ أَعْنَـٰبٍ وَحَفَفْنَـٰهُمَا بِنَخْلٍ وَجَعَلْنَا بَيْنَهُمَا زَرْعًا Qur’an Al-Kahf (18:32)Waidrib lahum mathalan rajulayni jaAAalna liahadihima jannatayni min aAAnabin wahafafnahuma binakhlin wajaAAalna baynahuma zarAAan
This parable connects with verses {7-8} of this surah, and serves as an illustration of the statement that "all beauty on earth is a means by which God puts men to a test".
Here is a simple parable of the contrast between two men. One was purse-proud, and forgot that what he had was from Allah, by way of a trust and a trial in this life. The other boasted of nothing: his trust was in Allah. The worldly wealth of the first was destroyed, and he had nothing left. The second was the happier in the end.