The Example of the Rich Idolators and the Poor Muslims
After mentioning the idolators who were too arrogant to sit with the poor and weak among Muslims, showing off before them with their wealth and noble lineage, Allah then gives a parable for them of two men, one of whom Allah gave two gardens of grapes, surrounded with palm trees and cultivated with crops throughout. All of the trees and plants were abundantly fruitful, providing readily accessible, good quality produce. Allah says:
كِلْتَا الْجَنَّتَيْنِ آتَتْ أُكُلَهَا
(Each of those two gardens brought forth its produce,) meaning, produced its fruits,
وَلَمْ تَظْلِمِ مِّنْهُ شَيْئًا
(and failed not in the least therein,) meaning, nothing at all was diminishing.
The word: ثَمَرٌ (thamar) in: وَكَانَ لَهُ ثَمَرٌ (And he had wealth - 34) means the fruit of trees as well as wealth, in an absolute sense. At this place, Sayyidna Ibn ` Abbas ؓ ، Mujahid and Qatadah have taken it in the later sense (Ibn Kathir) According to the Lexicon, al-Qamus, this word is used to denote the fruit of the tree and wealth of all kinds. This tells us that not only did he own gardens and farms, he also had gold, silver and other luxuries. Even his words reported by the Qur'an: (I am greater than you in wealth -34) also express the same sense. (Ibn Kathir)
About the statement: مَا شآء اللہ لا قُوَۃَ اِلَّا بِاللہِ : "[ Everything is ] as Allah wills. There is no power except with Allah," it has been reported in Shu'ab al-'Iman on the authority of Sayyidna Anas ؓ that the Holy Prophet ﷺ said, "whoever sees something, likes it - and says 'masha'Allahu la quwwata illa bil-lah' - nothing will harm it (that is, what he likes will stay protected).' And it appears in other reports, 'whoever recites this kalimah when he likes something he sees, it will stay protected against the evil eye.'
Take the example of a lush green garden which, due to a sudden natural calamity, is completely destroyed. This, figuratively speaking, will be the fate of one who achieves wealth and position in this world and becomes proud as a result. Whatever share of wealth and position a man receives in this world is, in fact, a test from God. But an unjust and transgressing man takes it to be the result of his own efforts. Consequently he develops an attitude of arrogance. He looks down upon a person whose share of wealth and position in this world is comparatively inferior. He develops a certain type of mindset by which he thinks that his world will never come to an end, and that even if this world ends and another world comes into existence, there is no reason why he should not enjoy the same comfortable conditions as he is enjoying here. He fails to differentiate between the world of trial and the world of reward.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.