General Context
Here Dhu al-Qarnayn’s story reaches its spiritual height. The barrier stands, the iron is joined by the qitr, the gap is closed, and Gog and Magog have proved unable to scale it or pierce it. Such a moment usually brings talk of power, achievement, and personal glory. The work is vast, the need great, and the result plain to see. Dhu al-Qarnayn stands before it as a grateful servant, free of the pride of a victor. He looks at what his hands built with Allah’s help and says ﴿هَٰذَا رَحۡمَةٞ مِّن رَّبِّي﴾ (“This is a mercy from my Lord”, Qur’an 18:98). He could have spoken of genius, dominion, the strength of his armies, or the skill of his planning. Strength, skill, and good planning are all there. Beyond the iron, copper, fire, and hands at work, he sees his Lord’s mercy.
This one saying reveals something of Dhu al-Qarnayn’s character. He has means without worshiping them. He uses power without mistaking it for a source of greatness in itself. He builds the barrier and knows it can last only as Allah wills. He finishes a work of extraordinary soundness and places both its survival and its disappearance under Allah’s promise ﴿فَإِذَا جَآءَ وَعۡدُ رَبِّي جَعَلَهُۥ دَكَّآءَ﴾ (“but when the promise of my Lord comes, He will make it level”, Qur’an 18:98). The barrier is a mercy for a time. The promise holds forever. Even the greatest structure, however sound, stands within the time Allah appoints. When the promise comes, the mountain of iron will lie level with the earth. Neither iron, qitr, nor hardness will keep it standing.
Al-Tabari said: “Allah, exalted is His mention, says that when Dhu al-Qarnayn saw that Gog and Magog could neither scale the barrier he had built nor pierce it, he said that what he had built and made even as a barrier between this people and those on the near side was a mercy from his Lord. By it Allah had mercy on the people on the near side. Out of that mercy He helped me build it and make it even, to keep this people’s harm from them. His words ﴿فإذَا جاءَ وَعْدُ رَبّي جَعَلَهُ دَكّاء﴾ (“but when the promise of my Lord comes, He will make it level”, Qur’an 18:98) refer to the time Allah appointed for this people to appear and come out upon them from behind the barrier. ﴿جعله دكاء﴾ (“He will make it level”, Qur’an 18:98) means He leveled it with the ground, laying it flat against it […] ﴿وكانَ وَعْدُ رَبّي حَقّا﴾ (“and ever is the promise of my Lord true.”, Qur’an 18:98) means that my Lord’s promise to creation is true, His promise to level this barrier, to let those people come out upon the others and work ruin among them, and everything else He promised. He does not fail in what He appoints, and nothing will come to pass outside what He promised would happen.” — Jamiʿ al-Bayan ʿan Taʾwil Ay al-Qur’an — Muhammad ibn Jarir al-Tabari.
The verse closes the account of the construction and, with it, a whole way of seeing the world. Use the means, build well, and protect the weak, then know that everything remains bound to Allah’s promise. The believer lives between mercy and the promise. He uses the means because mercy comes with them and keeps from trusting them too much, because when the promise comes it will prevail over them all.
Rhetorical Outpourings
The word ﴿رَبِّي﴾ (“my Lord”, Qur’an 18:98) occurs three times ﴿مِّن رَّبِّي﴾ (“from my Lord”, Qur’an 18:98), ﴿وَعۡدُ رَبِّي﴾ (“the promise of my Lord”, Qur’an 18:98), and ﴿وَعۡدُ رَبِّي﴾ (“the promise of my Lord”, Qur’an 18:98). The repetition gives us the key to the verse. Dhu al-Qarnayn ascribes the blessing to his Lord, entrusts the future to his Lord, and gives his Lord the credit for the truth of the outcome. Here the Lord gives, governs, appoints the time, and keeps the promise. The verse seems to free the heart from its hold on the barrier and attach it to the Lord of the barrier.
In ﴿هَٰذَا رَحۡمَةٞ﴾ (“This is a mercy”, Qur’an 18:98), “this” points to something close at hand and visible. The barrier is before them, its effect can be felt, and the people see what it is to be safe after fear. The verse calls it by a deeper name than building or barrier ﴿رَحۡمَةٞ﴾ (“a mercy”, Qur’an 18:98). To the eye it is iron and copper, and in its reality it is mercy. This is how to see things in the light of faith. The roof is mercy, food is mercy, knowledge is mercy, a just law is mercy, and strength that protects the weak is mercy.
Al-Mawardi said: “﴿قَالَ هَذا رَحْمَةٌ مِن رَّبِّي﴾ (“[Dhul-Qarnayn] said, "This is a mercy from my Lord”, Qur’an 18:98) may be understood in two ways. One is that what he built was a mercy from Allah Most High to His servants. The other is that his ability to do the work was a mercy from Allah Most High to him.” — Al-Nukat wa-l-ʿUyun — ʿAli ibn Muhammad al-Mawardi.
The two meanings belong together. The barrier was a mercy to the people because it protected them and a mercy to Dhu al-Qarnayn because Allah enabled him to build it. We often think of mercy chiefly as relief that comes to us. A greater mercy may lie in Allah making us a means by which relief comes to someone else. Dhu al-Qarnayn saw his charge as mercy from his Lord and carried it without counting it a burden.
The words ﴿فَإِذَا جَآءَ وَعۡدُ رَبِّي﴾ (“but when the promise of my Lord comes”, Qur’an 18:98) move from the present to the future, from the scene we can see to the unseen we have been promised. The verse does not say “when the barrier weakens,” “when enough time has passed,” or “when Gog and Magog overcome it.” It says ﴿إِذَا جَآءَ وَعۡدُ رَبِّي﴾ (“but when the promise of my Lord comes”, Qur’an 18:98). Rust, time, and human strength yield before the decisive fact of the divine promise. When the promise comes, what keeps things standing changes by Allah’s permission.
Ibn ʿAtiyyah said: “By ‘the promise’ he may mean the Day of Resurrection, or he may mean the time when Gog and Magog come out.” — Al-Muharrar al-Wajiz fi Tafsir al-Kitab al-ʿAziz — ʿAbd al-Haqq ibn Ghalib Ibn ʿAtiyyah.
The two meanings come together in the approach of the Hour and what comes before it. The emergence of Gog and Magog is one of the signs of the end of time, and when Allah’s promise comes no barrier or mountain can turn it back. This gives the ending ﴿وَكَانَ وَعۡدُ رَبِّي حَقّٗا﴾ (“and ever is the promise of my Lord true.”, Qur’an 18:98) its decisive force. It expresses an article of faith. Every promise of Allah is true, whether people see it as near or far, familiar or extraordinary, joyful or awe-inspiring.
Interpretive and Reflective Outpourings
The verse teaches believers to do their work well and submit to Allah. Dhu al-Qarnayn built a sound barrier that Gog and Magog could not climb or pierce, and he knew that its strength left it subject to Allah’s decree. This is a rare balance. Work as though the work is your responsibility and submit as one who knows that the whole affair is Allah’s. Some wait passively and never build, and some build and are deceived by their own achievement. Dhu al-Qarnayn built, then said ﴿هَٰذَا رَحۡمَةٞ مِّن رَّبِّي﴾ (“This is a mercy from my Lord”, Qur’an 18:98), then acknowledged that it would disappear when the promise came.
Al-Saʿdi said: “﴿هَذَا رَحْمَةٌ مِنْ رَبِّي ْ﴾ (“This is a mercy from my Lord”, Qur’an 18:98), that is, from His favor and kindness toward me. This is the way of righteous rulers. When Allah confers great blessings on them, they grow in gratitude, acknowledgment, and recognition of Allah’s gift. So Solomon, peace be upon him, said when the throne of the Queen of Sheba was brought before him from a great distance, ﴿هَذَا مِنْ فَضْلِ رَبِّي لِيَبْلُوَنِي أَأَشْكُرُ أَمْ أَكْفُرُ ْ﴾ (“This is from the favor of my Lord to test me whether I will be grateful or ungrateful.”, Qur’an 27:40). For tyrants, the arrogant, and those who exalt themselves on the earth, great blessings only increase their insolence and pride.” — Taysir al-Karim al-Rahman fi Tafsir Kalam al-Mannan — ʿAbd al-Rahman ibn Nasir al-Saʿdi.
This is the difference between Solomon and Qarun, and between Dhu al-Qarnayn and everyone who exalts himself on the earth. When the righteous see an achievement, they say ﴿هذا من فضل ربي﴾ (“This is from the favor of my Lord”, Qur’an 27:40) and ﴿هذا رحمة من ربي﴾ (“This is a mercy from my Lord”, Qur’an 18:98). When the proud see it, they say ﴿إنما أوتيته على علم عندي﴾ (“I was only given it because of knowledge I have.”, Qur’an 28:78). The verse puts the reader to a quiet test. What do you say when you succeed? To whom do you ascribe what your hands accomplished? Do you see Allah’s mercy, or do you see yourself alone?
Sayyid Qutb said: “Dhu al-Qarnayn looked at the immense work he had undertaken. Pride and vanity did not take him, and the exhilaration of power and knowledge did not intoxicate him. He remembered Allah and thanked Him, and ascribed to Him the good work He had enabled him to do. He put aside any claim to strength of his own and sought Allah’s strength, entrusted the affair to Him, and declared his belief that mountains, barriers, and dams would be leveled before the Day of Resurrection. The earth would return to a bare, level surface. ﴿قال هذا رحمة من ربي فإذا جاء وعد ربي جعله دكاء وكان وعد ربي حقا﴾ (“[Dhul-Qarnayn] said, "This is a mercy from my Lord; but when the promise of my Lord comes, He will make it level, and ever is the promise of my Lord true."”, Qur’an 18:98).” — In the Shade of the Qur’an — Sayyid Qutb Ibrahim Husayn al-Shadhili.
Reflection leads to a great principle. Every civilization, however high it rises, is here for a time. Every barrier, tower, state, force, and body of material knowledge is within the span Allah appoints. Keep building, and purify the work of arrogance. Build without worshiping what you have built. Do it well and remember the promise. Rejoice in the mercy and remember the truth that is coming.
Spiritual Outpourings
The words ﴿هَٰذَا رَحۡمَةٞ مِّن رَّبِّي﴾ (“This is a mercy from my Lord”, Qur’an 18:98) are among the great remembrances for those given power. It is said after an achievement, when the soul is most inclined to pride. How much we need this remembrance after every good work, a book written, a house built, a project brought to completion, a child raised, or knowledge gained. ﴿هذا رحمة من ربي﴾ (“This is a mercy from my Lord”, Qur’an 18:98). I could never have done it on my own, by effort or intelligence alone. Without my Lord’s mercy I would have found no guidance, no ability, and no patience. The work would never have been completed.
Al-Shaʿrawi said: “Dhu al-Qarnayn, being righteous, remembered to ascribe the blessing to its first Giver. He acknowledged himself as an intermediary and an instrument for carrying out Allah’s command ﴿قال هذا رحمةٌ مِن ربّي فإذا جاءَ وَعْدُ رَبِّي جَعَلَهُ [دكّاءَ] وكان وَعْدُ رَبِّي حَقّاً﴾ (“[Dhul-Qarnayn] said, "This is a mercy from my Lord; but when the promise of my Lord comes, He will make it level, and ever is the promise of my Lord true."”, Qur’an 18:98). I took the resources Allah granted me and used them to serve His servants. Thought is created by Allah, energy and strength are created by Allah, and the materials and elements of nature are created by Allah. What claim, then, do I have to say I did this or that?” — Khawatir al-Shaʿrawi — Muhammad Mutawalli al-Shaʿrawi.
This shakes the heart. Thought itself is created by Allah. Energy is created by Allah. Materials are created by Allah. Even the means we think we own are lent to us. Whatever someone achieves with intelligence, strength, and tools, all came from his Lord. It is fitting to say ﴿هذا رحمة من ربي﴾ (“This is a mercy from my Lord”, Qur’an 18:98).
Then the second part of the verse moves the heart from gratitude to awe ﴿فَإِذَا جَآءَ وَعۡدُ رَبِّي جَعَلَهُۥ دَكَّآءَ﴾ (“but when the promise of my Lord comes, He will make it level”, Qur’an 18:98). Everything a person shelters behind in this world can be leveled when Allah’s promise comes. Health, wealth, standing, walls, barriers, borders, armies. All of them are a mercy for as long as Allah permits. When His promise comes only the truth remains. The verse trains the heart to remember Allah even while enjoying His gifts, with a fear that leaves room for hope.
Abu al-Suʿud said: “﴿فَإِذَا جَاء وَعْدُ ربِّي﴾ (“but when the promise of my Lord comes”, Qur’an 18:98) […] refers to the Day of Resurrection rather than to the emergence of Gog and Magog as some have said, for the noble composition does not support the latter reading. Its coming includes both the arrival of the Day itself and the coming of its beginnings, including their emergence, the emergence of the Antichrist, the descent of Jesus, peace and blessings be upon him, and the like […] ﴿جَعَلَهُ دَكَّاءَ﴾ (“He will make it level”, Qur’an 18:98) […] sets out the greatness of His power, Mighty and Majestic, after the vastness of His mercy. ﴿وَكَانَ وَعْدُ ربّي﴾ (“and ever is the promise of my Lord”, Qur’an 18:98) may mean His promise under discussion or everything He has promised, of which this is a foremost instance. ﴿حَقّاً﴾ (“true.”, Qur’an 18:98) means sure and certain to happen.” — Irshad al-ʿAql al-Salim ila Mazaya al-Kitab al-Karim — Muhammad ibn Muhammad Abu al-Suʿud.
The verse brings the vastness of mercy together with the greatness of power. Mercy builds the barrier, and power levels it when the promise comes. Whoever knows Allah by these two attributes lives in hope and awe, without letting mercy make him forget power or letting fear of power make him despair of mercy.
Psychological Outpourings
The verse guides the soul after success. The completion of an achievement brings a person’s inner life into the open. Before it is complete there is need, fear, and prayer. Once it is finished, conceit creeps in. Dhu al-Qarnayn teaches us what to do when the work is done. Begin with gratitude and guard against making the achievement an idol in the mind.
A person can build a “barrier” in life. He brings a project into being, comes through a crisis, protects his family, founds an institution, writes a book, or succeeds at work. If he says in his heart, “This is me,” the fall begins within. If he says ﴿هذا رحمة من ربي﴾ (“This is a mercy from my Lord”, Qur’an 18:98), Allah preserves the blessing of the work for him. Recognizing mercy frees the self from illusion and restores its strength.
The words ﴿فَإِذَا جَآءَ وَعۡدُ رَبِّي﴾ (“but when the promise of my Lord comes”, Qur’an 18:98) treat an excessive attachment to things. We build, knowing that nothing we build can last forever. Protection in this world is temporary, security is limited, and every barrier has its term. Whoever understands this does not collapse when things change. He has known from the start that permanence belongs to Allah alone and that his Lord’s promise is true.
Muhammad Husayn Fadlallah said: “﴿قَالَ هَذَا رَحْمَةٌ مِّن رَّبِّي﴾ (“[Dhul-Qarnayn] said, "This is a mercy from my Lord”, Qur’an 18:98). He enabled me to do good, prepared the circumstances for me, and helped me gain the support of others for what I meant to do in confronting those who work corruption on the earth and meeting aggression with just force. ﴿فَإِذَا جَآءَ وَعْدُ رَبِّي﴾ (“but when the promise of my Lord comes”, Qur’an 18:98), when the Resurrection comes, the mountains vanish and become dust... ﴿جَعَلَهُ دَكَّآءَ﴾ (“He will make it level”, Qur’an 18:98). Nothing is left of the barrier. It turns to dust blown by the wind. ﴿وَكَانَ وَعْدُ رَبِّي حَقّاً﴾ (“and ever is the promise of my Lord true.”, Qur’an 18:98), beyond doubt. He is the truest to promise, His words cannot be altered, and He is the Subtle, the All-Aware.” — Min Wahy al-Qur’an — Muhammad Husayn Fadlallah.
This passage sets two scenes before the soul. A just force confronts aggression. Then a divine promise brings the greatest of barriers level with the ground. Work against aggression, and remember that the outcome of history is in Allah’s hands. Both aggression and the just power that opposes it fall within His decree.
Pedagogical Outpourings
The verse teaches leaders and educators to ascribe their success to Allah in public. Dhu al-Qarnayn says it to the people as well as in the privacy of his heart. He could have let them raise him to the status of a legend. Instead he cuts off the path to a cult around his person and says ﴿هَٰذَا رَحۡمَةٞ مِّن رَّبِّي﴾ (“This is a mercy from my Lord”, Qur’an 18:98). A good leader teaches people to know their Lord and leaves them free of worship of the leader.
This matters profoundly for public education. When a father succeeds in raising his children, let him tell them that this is from Allah’s mercy. When an institution succeeds, let those in it learn to thank Allah. When a nation prevails, let its first words be that this is Allah’s favor. Ascribing blessing to Allah protects a community from pride in victory. That pride is often where defeat begins.
The words ﴿وَكَانَ وَعۡدُ رَبِّي حَقّٗا﴾ (“and ever is the promise of my Lord true.”, Qur’an 18:98) teach people to believe in what lies ahead. What looks permanent can pass away, and what seems distant can come. Allah’s promise is true even when it is slow in human reckoning. Children, students, and communities need that education. Beyond the moment lies a promise, beyond power an appointed end, and beyond history a day when realities come to light.
Al-Biqaʿi said: “﴿قال هذا﴾ (Qur’an 18:98), that is, the barrier, ﴿رحمة من ربي﴾ (“a mercy from my Lord”, Qur’an 18:98), who has done good to me by enabling me to build it and use it to stop corruption. ﴿فإذا جاء وعد ربي﴾ (“but when the promise of my Lord comes”, Qur’an 18:98), when the Hour is near, ﴿جعله دكاء﴾ (“He will make it level”, Qur’an 18:98) [by enabling them] to pierce and demolish it and by making it easy for them […] Since this is an immense matter beyond the ordinary course of events, He gives the reason in His words ﴿وكان وعد ربي﴾ (“and ever is the promise of my Lord”, Qur’an 18:98), His promise that Gog and Magog would come out, penetrate the land and work corruption there, and that the Hour would then come, ﴿حقاً﴾ (“true.”, Qur’an 18:98), certain to happen.” — Nazm al-Durar fi Tanasub al-Ayat wa-l-Suwar — Ibrahim ibn ʿUmar al-Biqaʿi.
The education here teaches people to build barriers and to see that even those barriers answer to Allah’s promise. The Qur’an forms people who build the wall and believe in the promise. It protects them from a materialism that would trust the wall alone and a superstition that would let it go unbuilt.
Contemporary Outpourings
Modern civilization needs this verse just as the people of Dhu al-Qarnayn did. Humanity has built barriers of many kinds, in engineering, economics, medicine, digital systems, and military affairs. As its achievements grow, so does its need to say ﴿هذا رحمة من ربي﴾ (“This is a mercy from my Lord”, Qur’an 18:98). Without those words, achievement becomes pride, knowledge turns into a tool of control, and the ability to protect others becomes a reason to look down on them.
How many discoveries could have been a mercy, yet became a calamity once torn away from their ethical setting. How much power could have protected the vulnerable, yet preyed on them. How much technology could have closed a gap, yet opened others in the soul and in society. The verse asks more of each age than whether it can build a barrier. Do you know that it is mercy from your Lord? Do you know it will be leveled when your Lord’s promise comes?
In contemplating the wider order of creation, the phrase ﴿وَعۡدُ رَبِّي﴾ (“the promise of my Lord”, Qur’an 18:98) comes into view as the supreme law to which every law of matter answers. Iron has its hardness, copper has its properties, fire has its effects, and engineering has its calculations. Over all of it stands Allah’s promise. If He wills something to remain, it remains as He wills. When His promise comes, He levels it. This places knowledge where it belongs. It can disclose some of the patterns Allah has made, while the promise remains in His hands.
For that reason the believer’s imagination, reflecting on veils and barriers in the wider order of creation through the story of Gog and Magog, pauses in reverence before ﴿وَكَانَ وَعۡدُ رَبِّي حَقّٗا﴾ (“and ever is the promise of my Lord true.”, Qur’an 18:98). Allah may hold forces behind a veil, open doors, and set bounds between worlds, peoples, and times. Every veil has its appointed hour, every barrier its term, and everything unseen is revealed only by His leave. There is more to learn here than the name of every place and the particulars of every event. Believe that the promise is true, that what Allah withholds is mercy, and that what He discloses at its time is truth.
This verse can close every human achievement ﴿هذا رحمة من ربي﴾ (“This is a mercy from my Lord”, Qur’an 18:98). It can remind any civilization tempted by pride ﴿فإذا جاء وعد ربي جعله دكاء﴾ (“but when the promise of my Lord comes, He will make it level”, Qur’an 18:98). And it can become certainty in the heart of any believer who fears the power of those who work corruption ﴿وكان وعد ربي حقًا﴾ (“and ever is the promise of my Lord true.”, Qur’an 18:98). Mercy builds, the promise governs, and truth comes at the appointed time. The human task is to work with gratitude, wait with certainty, and remember that every barrier on earth, however great, stands by Allah’s mercy and lasts only until His true promise appoints its end.
﴿قَالَ هَٰذَا رَحْمَةٌ مِّن رَّبِّي ۖ فَإِذَا جَاءَ وَعْدُ رَبِّي جَعَلَهُ دَكَّاءَ ۖ وَكَانَ وَعْدُ رَبِّي حَقًّا﴾ (98)
[Dhul-Qarnayn] said, "This is a mercy from my Lord; but when the promise of my Lord comes, He will make it level, and ever is the promise of my Lord true." (Qur’an 18:98)