General Context
Having declared his own belief in unqualified terms, ﴿لَّٰكِنَّا هُوَ اللَّهُ رَبِّي وَلَا أُشْرِكُ بِرَبِّي أَحَدًا﴾ (“But as for me, He is Allah, my Lord, and I do not associate with my Lord anyone.”, Qur’an 18:38), the believer moves from affirming Allah's oneness to teaching how to receive a blessing. He wants to do more than condemn his companion. He wants to open a way to safety for him. With the gentleness of a reasoned appeal and the strength of conviction, he tells him that when he entered his garden and saw what delighted him, he should have said ﴿مَا شَاءَ اللَّهُ لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39). These words go well beyond a flourish uttered in admiration. They set right the whole way of seeing a blessing. Whatever comes to be does so by Allah's will. Whatever stands does so by Allah's power. Whatever endures is sustained by His protection.
Here we see the greatness of this believer of modest means. As he will say, he had less wealth and fewer children. Yet he felt no envy and did not begin by wishing away his companion's blessing. He taught him what might preserve it. This is the conduct faith generates in a clear heart. When it sees a brother taken in by what he has, it offers counsel. When it sees him lording over others, it brings him back to Allah. When it sees him tested by a blessing, it teaches him to be grateful. A resentful man would have left his companion until he fell. The believer took pains to counsel him. His joy lies in seeing people come back to their Lord rather than watching them come to harm.
Muqatil says: “The believer then said to the disbeliever ﴿وَلَوْلَا﴾ (“And why did you”, Qur’an 18:39), meaning ‘why did you not?’ ﴿إِذْ دَخَلْتَ جَنَّتَكَ﴾ (“when you entered your garden”, Qur’an 18:39), meaning your orchard, ﴿قُلْتَ مَا شَاءَ اللَّهُ لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“say, 'What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39), that is, why did you not say, ‘By Allah's will it was given to me, through neither might nor power of my own’? The believer then responded to the disbeliever with ﴿إِن تَرَنِ أَنَا أَقَلَّ مِنكَ مَالًا وَوَلَدًا﴾ (“Although you see me less than you in wealth and children,”, Qur’an 18:39).” — Tafsir Muqatil ibn Sulayman — Muqatil ibn Sulayman.
This interpretation gives the words their point. You were given the garden by Allah's will, through neither might nor power of your own. The owner of the two gardens saw his garden as the fruit of his own doing, power, and standing. The believer traces it to its source, the will of Allah. What Allah willed came to pass. Wealth, arrangements, followers, and a person's pride in himself have no such power to will.
Rhetorical Outpourings
The verse uses ﴿وَلَوْلَا﴾ (“And why did you”, Qur’an 18:39) to urge what should have been done and reproach him for leaving it undone. Why did you not say, as you entered your garden, the words that return a blessing to the One who gave it? The tongue speaks here from a whole state of the heart. It sees Allah's will at work and rejects any independence of its own power from that will. The verse teaches us that a blessing has a moment of entry, and there is a way to conduct oneself at that moment. A person who enters a blessing and takes delight in it will enter with tawhid or conceit.
Al-Tabari says: “Allah, exalted be His mention, says, why did you not say when you went into your orchard and delighted in what you saw there, ‘What Allah willed has come to pass’? A part of the expression is omitted because what is said indicates it. The omitted part is the answer to the condition, ‘has come to pass.’ On this understanding, mā is in the accusative as the object of Allah's action, His willing. The answer may be dropped because the sense is known, as in ﴿فإن استطعت أن تبتغي نفقا في الأرض﴾ (“then if you are able to seek a tunnel into the earth”, Qur’an 6:35), where the answer is left unstated because the sense is understood. Some scholars of Arabic said that mā in ﴿مَا شَاءَ اللَّهُ﴾ (“What Allah willed [has occurred]”, Qur’an 18:39) stands in the nominative with an implicit huwa, as though it said, ‘You said, This is what Allah willed.’ ﴿لا قُوَّةَ إِلا بِاللَّهِ﴾ (“there is no power except in Allah”, Qur’an 18:39) means that there is no power to undertake what we seek to do in obedience to Him except through Him. As for His words ﴿إِنْ تَرَنِي أَنَا أَقَلَّ مِنْكَ مَالا وَوَلَدًا﴾ (“Although you see me less than you in wealth and children,”, Qur’an 18:39) […] the believer said to the disbeliever, ‘O man, if you see me with less wealth and offspring than you.’” — Jamiʿ al-Bayan ʿan Taʾwil Ay al-Qur’an — Muhammad ibn Jarir al-Tabari.
Al-Tabari explains “mā shāʾa Allāh” as ‘what Allah willed has come to pass.’ The omission gives the words room to take in everything in the garden: its fruit and water, palms and grapes, crops, continued life, beauty, and benefit. All fall within Allah's will. He then explains “lā quwwata illā billāh” as meaning that we have no power to undertake what we seek to do in obedience to Him except through Him. The meaning opens out from preserving the orchard to preserving the heart, action, and obedience. The servant has power to thank Allah for a blessing only through Him, just as he has power to obtain it only through Him.
Ibn ʿAshur says: “The clause ﴿وَلَوْلَا إِذْ دَخَلْتَ﴾ (“And why did you, when you entered”, Qur’an 18:39) is joined to ‘Have you disbelieved?’, linking one reproach to another. Lawlā conveys reproach, as it does before a verb of the past tense in ﴿لَّوْلَا جَاءُوا عَلَيْهِ بِأَرْبَعَةِ شُهَدَاءَ﴾ (“Why did they [who slandered] not produce for it four witnesses?”, Qur’an 24:13) [An-Nur, verse 13]. What you ought to have said is ﴿مَا شَاءَ اللَّهُ لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39) in place of what you said in ﴿مَا أَظُنُّ أَن تَبِيدَ هَٰذِهِ أَبَدًا وَمَا أَظُنُّ السَّاعَةَ قَائِمَةً﴾ (“I do not think that this will perish - ever. And I do not think the Hour will occur.”, Qur’an 18:35–36) [Al-Kahf, verses 35–36]. The meaning is, ‘You disbelieved in Allah and denied His blessing.’ The best of the views expressed about mā in ﴿مَا شَاءَ اللَّهُ﴾ (“What Allah willed [has occurred]”, Qur’an 18:39) is that it is a relative pronoun predicated of an omitted subject implied by the situation of entering the garden: this garden is what Allah willed, what He willed to give me. Better in my view is to take mā as an indefinite expression with a modifier: this is something Allah willed, that is, for me. […] The general meaning of ﴿لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“there is no power except in Allah”, Qur’an 18:39) makes it like a cause and evidence for that garden being one particular result of the human powers granted to people by Allah's bounty. […] ﴿إِن تَرَنِ أَنَا أَقَلَّ مِنكَ مَالًا وَوَلَدًا﴾ (“Although you see me less than you in wealth and children,”, Qur’an 18:39) is a new sentence with which he went back to answering his companion's words ﴿أَنَا أَكْثَرُ مِنكَ مَالًا وَأَعَزُّ نَفَرًا﴾ (“I am greater than you in wealth and mightier in [numbers of] men”, Qur’an 18:34) [Al-Kahf, verse 34]. He admonishes him that he does not know whether his abundance may shrink or disappear, and whether someone of little means may come into considerable wealth.” — Al-Tahrir wa-l-Tanwir — Muhammad al-Tahir Ibn ʿAshur.
Ibn ʿAshur explains that the expression was to take the place of two flawed statements, ﴿مَا أَظُنُّ أَن تَبِيدَ هَٰذِهِ أَبَدًا﴾ (“I do not think that this will perish - ever.”, Qur’an 18:35) and ﴿وَمَا أَظُنُّ السَّاعَةَ قَائِمَةً﴾ (“And I do not think the Hour will occur.”, Qur’an 18:36). Had he said ﴿ما شاء الله لا قوة إلا بالله﴾ (“What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39), the illusion of permanence would have broken, the truth of his dependence would have become firm, and he would have recognized the garden as something Allah willed to give him. Its existence was never independent, and it had no power to make itself last. These few words strike at the root of the whole conceit.
Interpretive and Reflective Outpourings
Reflecting on the verse leads to a larger insight. A blessing needs some words to preserve its meaning in the heart before its outward form is preserved. Beyond presenting these words as a means of blessing, the verse teaches a person how to read what has been given. When you say ﴿مَا شَاءَ اللَّهُ﴾ (“What Allah willed [has occurred]”, Qur’an 18:39), you acknowledge that it came neither by chance nor by some inherent entitlement, and that the means did not bring it about independently. When you say ﴿لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“there is no power except in Allah”, Qur’an 18:39), you give up any claim to might of your own and trace power to its source.
Al-Zamakhshari says: “The meaning is, why did you not say when entering it and looking at what Allah had provided for you there, ‘The matter is what Allah willed’? You would have acknowledged that it and every good thing in it came about only by Allah's will and bounty, and that its affair is in His hand. If He wills He leaves it flourishing, and if He wills He ruins it. You would have said ﴿لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“there is no power except in Allah”, Qur’an 18:39), acknowledging that the power you were given to cultivate it and manage its affairs came only through His aid and support. No one has power in their own body or over what they own except through Allah Most High. […] The sense is, if you see me poorer than you, I expect that through what Allah does He may reverse our conditions of poverty and wealth, and give me a garden for my faith.” — Al-Kashshaf ʿan Haqaʾiq Ghawamid al-Tanzil — Mahmud ibn ʿUmar al-Zamakhshari.
This passage comes close to the heart of the verse. Every good thing in the garden came about by Allah's will and bounty, and its affair is in His hand. If He wills, He leaves it flourishing. If He wills, He ruins it. This way of seeing things saves us from worshiping an appearance of stability. The strength you had to cultivate the garden and put its affairs in order came through Allah's aid. The verse recognizes the man's work and planning without granting that they were independent of Allah.
Al-Maturidi says: “﴿وَلَوْلَا إِذْ دَخَلْتَ جَنَّتَكَ﴾ (“And why did you, when you entered your garden”, Qur’an 18:39), you would have looked at how Allah blessed you and risen to give thanks, instead of becoming occupied with despising me, looking down on my condition and small possessions, and boasting over me. [In this way] he said ﴿إِن تَرَنِ أَنَا أَقَلَّ مِنكَ مَالًا وَوَلَدًا﴾ (“Although you see me less than you in wealth and children,”, Qur’an 18:39).” — Taʾwilat Ahl al-Sunnah — Muhammad ibn Muhammad al-Maturidi.
Al-Maturidi puts his finger on what has gone wrong in the man's mind and reflection. His attention ought to have been on what Allah gave him, rather than on despising someone who owns less. A blessing may lift the heart to the One who gave it or lead it down into comparison. The owner went in the direction of comparison. “I have more than you.” His companion shows him where to look: toward Allah, and toward thanking Him.
The verse shows at a deeper level that tawhid lives beyond the mosque and goes with a person into the orchard, home, project, library, factory, and farm. ﴿إِذْ دَخَلْتَ جَنَّتَكَ﴾ (“when you entered your garden”, Qur’an 18:39) marks that moment of direct contact with a blessing. Tawhid shapes how you enter into things, far beyond an idea at some distance from them. You can walk into a blessing and see Allah's hand in it, or walk in and see yourself.
Al-Biqaʿi says: “Believers follow the path of the prophets in desiring good, directing people to the way of salvation, and holding no grudge against anyone for an evil they once committed or ignorance they formerly displayed. Having hinted at his obligation in what he said about himself, the believer now teaches his companion explicitly: ﴿وَلَوْلَا إِذْ﴾ (Qur’an 18:39), that is, why, when ﴿دَخَلْتَ جَنَّتَكَ قُلْتَ﴾ (Qur’an 18:39), did you not say something that showed you entrusted this and every other matter to Allah Most High, as you were directed earlier in ﴿وَلَا تَقُولَنَّ لِشَيْءٍ﴾ (“And never say of anything”, Qur’an 18:23) [Al-Kahf, verse 23]? You would have left off boasting and remembered that the One who gave the garden can take it away. That would lead you toward divine oneness and keep you from ascribing partners to Him. Do not exult over it or anything else that perishes. Unqualified joy belongs to what is secure from [disappearance]. ﴿مَا شَاءَ اللَّهُ﴾ (“What Allah willed [has occurred]”, Qur’an 18:39), that is, what the One who governs every affair wills comes to pass, in the present, past, or future. Thus the expression omits the answer. Whatever someone else wishes, but He, glorious is He, does not will, does not come to pass. Allah Most High then gives the reason: ﴿لَا قُوَّةَ﴾ (“there is no power”, Qur’an 18:39) for anyone over a garden or anything else, ﴿إِلَّا بِاللَّهِ﴾ (“except in Allah”, Qur’an 18:39), who alone has perfection and has no partner. These words affirm that power belongs to Allah, disavow any power of the servant apart from His, point out that no creature has power except by His determination so that none besides Him is feared, and expose the error of the philosophers who say that natural properties have effects in and of themselves. The believer first said what was incumbent on him in his own case to alert his companion to it. He then fulfilled his duty of directing him explicitly, in words making it clear that the whole affair belongs to Allah and that no one else has any share in it. This yields Allah's words ﴿إِن تَرَنِ﴾ (“Although you see me”, Qur’an 18:39), that is, ‘you who boast before me of what you have!’ Then comes ‘I,’ the separating pronoun, and then the second object of the verb ‘see’: ﴿أَقَلَّ مِنكَ﴾ (“less than you”, Qur’an 18:39). He names what there is less of in the words ﴿مَالًا وَوَلَدًا﴾ (“in wealth and children”, Qur’an 18:39), that is, wealth and offspring, a person's strongest support.” — Nazm al-Durar fi Tanasub al-Ayat wa-l-Suwar — Ibrahim ibn ʿUmar al-Biqaʿi.
Al-Biqaʿi connects this verse to the earlier verse on the divine will, ﴿وَلَا تَقُولَنَّ لِشَيْءٍ إِنِّي فَاعِلٌ ذَٰلِكَ غَدًا إِلَّا أَن يَشَاءَ اللَّهُ﴾ (“And never say of anything, "Indeed, I will do that tomorrow," Except [when adding], "If Allah wills."”, Qur’an 18:23–24). Surah Al-Kahf seems to teach the heart one encompassing way to approach both the future and its blessings. Speak of the future subject to Allah's will. Enter what you have been given knowing that it is there by His will. Trace your strength to Him. The theme runs deep in the surah and frees us from imagining ourselves in control.
Al-Jassas says: “The verse shows that when one of us says ﴿ما شاء الله﴾ (“What Allah willed [has occurred]”, Qur’an 18:39), it can ward off the evil eye, help a blessing endure, and leave pride aside. The passage tells him that if he had said it, what befell his garden would have been averted.” — Ahkam al-Qur’an — Abu Bakr Ahmad ibn ʿAli al-Jassas.
This is an inference by al-Jassas linking remembrance to gratitude, abandoning pride, and preserving a blessing. It gives no grounds for attributing every calamity to the evil eye or guaranteeing that these words will preserve every possession. When one admires another person's blessing, it is prescribed to ask Allah to bless them, as in the report about Sahl ibn Hunayf in Ibn Majah, Book of Medicine, chapter on the evil eye, no. 3509. Remembering Allah and asking Him to bless another are manners of faith, along with committing every affair to His will and withholding judgment about the cause of any particular affliction until there is evidence.
Spiritual Outpourings
The spirit of the verse is the believer teaching his companion to remember Allah in the presence of beauty. The garden is beautiful, the fruit abundant, the water flowing, and the scene a delight. Let a person enjoy that beauty and remember Allah in its presence. Let heart and tongue say that this is what Allah has willed. Beauty emptied of remembrance can be a trial. Joined to remembrance it becomes a sign. A blessing received in heedlessness can lead to conceit, while one entered in gratitude brings a person near to Allah.
Al-Wahidi says: “﴿لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“there is no power except in Allah”, Qur’an 18:39). No one has power over the property and blessings they hold except through Allah. In this the Muslim reproaches the disbeliever for what he said and teaches him what he ought to say.” — Al-Wajiz fi Tafsir al-Kitab al-ʿAziz — ʿAli ibn Ahmad al-Wahidi.
There is reproach and teaching together. The believer goes beyond telling his companion that he is wrong and shows him what he should say. That is part of the mercy of sincere counsel. When you see someone taken in by a blessing, your concern should reach beyond exposing it to showing them words of gratitude. Teach them that property and blessings are sustained through Allah rather than through the power of those who possess them.
Ibn al-ʿArabi says: “One should say what Allah has said: ﴿وَلَوْلَا إِذْ دَخَلْتَ جَنَّتَكَ﴾ (“And why did you, when you entered your garden”, Qur’an 18:39), that is, your dwelling, you said ﴿مَا شَاءَ اللَّهُ لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39). Ashhab relates from Malik: ‘Everyone going into their dwelling ought to say this.’ Ibn Wahb said, ‘Hafs ibn Maysarah told me, “I saw written on the door of Wahb ibn Munabbih ﴿مَا شَاءَ اللَّهُ لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39).”’ […] Some people have said that whoever says ‘What Allah willed has come to pass’ and is then afflicted by anything will be content with it. Allah knows best.” — Ahkam al-Qur’an — Abu Bakr Muhammad ibn ʿAbd Allah Ibn al-ʿArabi.
This quotation has a lovely bearing on education and the spiritual life. Whoever enters their dwelling ought to say these words. The verse reaches beyond the garden of the man who had two gardens and enters the homes of believers. Every home is a little garden, and every blessing a garden. Every place where we find company, shelter, or well-being needs those words. The writing on Wahb's door is a report related by Ibn al-ʿArabi. Its inclusion in his work does not make it a report traced back to the Prophet or establish that the writing alone would protect a place. What matters is that the words and the heart bear a living sense of Allah's will and of our dependence.
Psychological Outpourings
The verse addresses the first moment of admiration. The danger begins with entering, ﴿إِذْ دَخَلْتَ جَنَّتَكَ﴾ (“when you entered your garden”, Qur’an 18:39), when you look at what you own and feel pleasure in it. Just then either conceit slips in or remembrance comes to mind. That is why the remedy is immediate. Say ﴿ما شاء الله لا قوة إلا بالله﴾ (“What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39). It checks the self as it begins to swell, before admiration becomes superiority and superiority becomes ingratitude.
Al-Shaʿrawi says: “What is remarkable is that the poor believer who owns nothing of this world's goods shows his disbelieving companion the key to more worldly good, despite the ease in which that man already lives. The key to an increase of worldly good and the endurance of its blessings is for us to say ﴿مَا شَاءَ اللَّهُ لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39).” — Khawatir al-Shaʿrawi — Muhammad Mutawalli al-Shaʿrawi.
Al-Shaʿrawi draws attention to how unexpected this is. The poor man teaches the rich what allows a good thing to endure. Possessing a blessing is one thing. Understanding how blessings endure is another. Someone may have plenty without knowing how to preserve it through gratitude. Another may have little and yet know the door to blessing. This frees the soul from feeling diminished in the presence of wealth. A poor believer may understand more about how blessings work than the rich man taken in by them.
Husayn Fadlallah says: “﴿وَلَوْلَا إِذْ دَخَلْتَ جَنَّتَكَ قُلْتَ مَا شَاءَ اللَّهُ لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“And why did you, when you entered your garden, not say, 'What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39), so that you would not become absorbed in yourself or give yourself over to your own power or the means around you. You would live with Allah in a deep awareness of your absolute need for Him in every detail of your existence, just as you needed Him at the source of your being. You would recognize that the whole of life is subject to His will, and that every power is derived from His. You would come to your garden with the caution of one who does not know what may happen to it, not knowing what Allah wills for it. You would place no trust in the dreams it holds, for the unseen may hold any number of developments that could turn it upside down.” — Min Wahy al-Qur’an — Muhammad Husayn Fadlallah.
This is an exacting account of what happens in the mind. Do not get lost in yourself or give yourself over to your own strength and the means around you. Heedlessness begins when a person is absorbed in the self and imagines it the center of power. Remembrance opens an awareness of utter need for Allah in every detail of life. Thus a believer enters the garden with care. It is the care of someone who knows that the unseen may overturn the circumstances and that Allah alone protects, quite distinct from an anxiety that makes one ill.
Pedagogical Outpourings
The verse teaches a Muslim to have some words of remembrance that accompany blessings. Qur’anic education lets people enjoy what Allah has provided and refines their joy. When someone enters their home, sees their child, opens a business, looks at the fruit of their work, puts on a garment, or feels well in their body, let them say with a present heart ﴿ما شاء الله لا قوة إلا بالله﴾ (“What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39). The words restore the blessing to the context of worship.
This is an important lesson. Remember that the One who gave is able to take away. The point is to guard against worshiping the blessing while enjoying it. Reprehensible joy forgets that things can pass. Grateful joy sees the blessing, its Giver, and its end. Unqualified joy is therefore fitting only for what is safe from passing, which is what is with Allah.
The report makes the verse part of daily practice. Home, car, office, farm, library, everything a person takes comfort in and enters upon, needs a reminder. A father, mother, or teacher can make these words a living custom in the home. Beyond reciting them automatically, children learn that what we have is from Allah, that we have strength through Him, and that thanking Him for a blessing is a part of preserving it.
There is another lesson in ﴿إِن تَرَنِ أَنَا أَقَلَّ مِنكَ مَالًا وَوَلَدًا﴾ (“Although you see me less than you in wealth and children,”, Qur’an 18:39). The believer is clear-eyed about his circumstances. “Yes, you may see me with less money and fewer children.” He refuses to take that outward disadvantage as the measure of defeat. Faith asks people to see their circumstances in the light of Allah's power without lying about what is before them. “I may have less now, but both giving and withholding are in Allah's hand, and the present does not settle the outcome.”
Contemporary Outpourings
In an age of achievement, image, and display, a “garden” can take almost any form. A luxurious house, successful project, distinguished qualification, large online account, fit body, expanding company, farm, library, platform, or celebrity can all become gardens. Every time a person enters one of these modern gardens, they need these old words with their ever-renewed meaning: ﴿مَا شَاءَ اللَّهُ لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39). They guard a person against thinking success created itself.
This is an answer for people today who are beguiled by the means they have. There is planning, knowledge, experience, a market, skill, and a network of relationships. Every power is drawn from His. The mind that planned, the body that worked, the chance that came, the time that opened up, and the well-being that continued through it were never independent of Allah. To see that is to go on working and give up conceit.
These words have a bearing on practical gratitude, justice, and abandoning wrongdoing. They are a key because a sincere heart follows through on what it says. There is gratitude, humility, giving, fear of losing the blessing, and care to use it well. Reciting the words while keeping the pride and injustice has yet to realize the spirit of the verse. Nor does gratitude guarantee that each particular blessing will remain or that the person giving thanks will be spared every trial. The sincere believer may be tested while the reward and meaning of obedience endure.
Verse thirty-nine thus teaches us how to enter a blessing. Enter your garden with the heart of a grateful servant and leave the gaze of a conceited owner at the door. Give up saying it is yours, will never perish, and proves that you have more and stand higher. Say ﴿مَا شَاءَ اللَّهُ لَا قُوَّةَ إِلَّا بِاللَّهِ﴾ (“What Allah willed [has occurred]; there is no power except in Allah”, Qur’an 18:39). If you see someone with less wealth and fewer children, do not use that as a platform for pride. Allah may reverse conditions, exchange people's places, give to whomever His wisdom wills, and withhold from whomever His wisdom wills. A blessing is a trust held between Allah's will and power. Whoever is grateful for it keeps its meaning firm in the heart. Whoever grows conceited over it puts the heart at risk from a trial that may destroy it even while the wealth is still in their hands.
﴿وَلَوْلَا إِذْ دَخَلْتَ جَنَّتَكَ قُلْتَ مَا شَاءَ اللَّهُ لَا قُوَّةَ إِلَّا بِاللَّهِ ۚ إِن تَرَنِ أَنَا أَقَلَّ مِنكَ مَالًا وَوَلَدًا﴾
And why did you, when you entered your garden, not say, 'What Allah willed [has occurred]; there is no power except in Allah '? Although you see me less than you in wealth and children, (Qur’an 18:39)