General Context
Here the magicians' story reaches one of its most beautiful heights. The courage of faith meets the humility of prayer, and a firm stand meets the admission of need for Allah's help. Men who came to faith only a short while ago stand before a king with the means to do them harm. They ask no pardon for believing and make no apology for recognizing the truth. They answer his accusation and then turn with their hearts to their Lord, asking for patience, steadfastness, and a good end.
What a distance these men traveled in a few hours. They came to Pharaoh asking for payment if they defeated Moses, and he promised the wealth, standing, and favor they sought. They went into the arena confident in their craft, cast their ropes and staffs, bewitched the people's eyes, and filled them with fear. Then Allah commanded Moses to cast his staff. It swallowed what they had falsified, the truth prevailed, and what they had been doing came to nothing.
There, where Pharaoh expected that the proof would go against Moses, it went against Pharaoh. The magicians knew enough of where their craft ended to distinguish the miracle from magic. They fell in prostration and declared faith in the Lord of the worlds, the Lord of Moses and Aaron.
Pharaoh could not endure this change. How could the very people he brought to oppose Moses believe? How could his truthfulness be attested by those best able in people's eyes to expose magic and prevail over its practitioners? He accused them of conspiracy, alleged that they wanted to drive the inhabitants out of the city, and threatened to cut off their hands and feet from opposite sides and crucify them all.
Their first answer was ﴿إِنَّا إِلَىٰ رَبِّنَا مُنقَلِبُونَ﴾ “Indeed, to our Lord we will return.” (7:125).
This second answer came to show what the supposed offense was for which Pharaoh threatened them with punishment: ﴿وَمَا تَنقِمُ مِنَّا إِلَّا أَنْ آمَنَّا بِآيَاتِ رَبِّنَا لَمَّا جَاءَتْنَا﴾ “And you do not resent us except because we believed in the signs of our Lord when they came to us.” (7:126).
It is as though they say: We betrayed you by no secret agreement. We did not conspire to expel the people of the city, or commit a crime meriting this threat. When our Lord's signs appeared, we recognized the truth, believed in them, and refused to deny what we knew.
They turn from speaking to the king and face Allah in prayer: ﴿رَبَّنَا أَفْرِغْ عَلَيْنَا صَبْرًا وَتَوَفَّنَا مُسْلِمِينَ﴾ “Our Lord, pour upon us patience and let us die as Muslims [in submission to You].” (7:126).
This passage from speaking with Pharaoh to confiding in Allah is the heart of the scene. Their position toward falsehood was settled. Now they turned to the One who holds the power to keep hearts firm, knowing that the courage they had shown would not spare them the need for Allah's support if the trial came.
Imam al-Ṭabarī draws the meanings of the verse together:
“In His words ﴿وَما تَنْقِمُ مِنّا إلاّ أنْ آمَنّا بآياتِ رَبّنا﴾ ‘And you do not resent us except because we believed in the signs of our Lord’ (7:126), He means: You find no fault with us, Pharaoh, and hold nothing against us except that we believed, that is, that we affirmed the signs of our Lord. He means our Lord's proofs, tokens, and evidences, the like of which neither you nor anyone but Allah can produce. To Him belongs the dominion of the heavens and the earth. They then took refuge with Allah, asking Him for patience against Pharaoh's torment and to take their souls in Islam.”
Jāmiʿ al-Bayān ʿan Taʾwīl Āy al-Qurʾān — Muḥammad ibn Jarīr al-Ṭabarī
The verse thus brings together the innocence of their position, the sincerity of their faith, seeking Allah's aid through the trial, and the wish to stand firm until death. In al-Aʿrāf this is a beautiful conclusion to the encounter with the believing magicians before the narrative turns to Pharaoh's elite and his continuing conflict with Moses and the Children of Israel.
The end of the scene goes beyond victory and defeat to a greater question. How does a person preserve faith when holding to it has a cost? How does the heart turn to Allah when it has said all it can say to other people?
Rhetorical Outpourings
The verse opens with Allah Most High's words ﴿وَمَا تَنقِمُ مِنَّا إِلَّا أَنْ آمَنَّا﴾ “And you do not resent us except because we believed” (7:126). The construction uses negation and exception, and by it the believers identify the sole cause of Pharaoh's condemnation and threat.
The word tanqimu is derived from niqmah and denotes disapproval, aversion, and blame. Its meaning can extend to punishment issuing from that feeling. In Arabic the verb has two known forms, with kasrah or fatḥah on the qāf. In the familiar reading of Ḥafṣ and the majority of readers it has kasrah.
The expression can thus mean either “You find no fault with us except our faith” or “You punish us for nothing except our faith.” The paradox is plain in both. What Pharaoh treats as meriting punishment is precisely what the believers consider the greatest thing Allah enabled them to do.
Al-Samīn al-Ḥalabī sets out the two analyses:
“In His words [Most High] ﴿إِلاَّ أَنْ آمَنَّا﴾ ‘except because we believed’ (7:126), the expression can stand in the accusative as a direct object, meaning that you find no fault in us except our belief. It may also be an accusative of cause, meaning that you attack and torture us for nothing except our faith. On either account it is an exception without an expressed antecedent.”
Al-Durr al-Maṣūn fī ʿUlūm al-Kitāb al-Maknūn — Aḥmad ibn Yūsuf al-Samīn al-Ḥalabī
An obvious rhetorical paradox follows from this construction. Pharaoh presents as a fault one of the noblest qualities a person can have: believing the truth once its proof has appeared.
Some commentators therefore see the expression as close to the device of “reinforcing praise with apparent blame.” It takes the form of accounting for a fault, and what is singled out turns out to be a virtue beyond reproach.
Al-Zamakhsharī says:
“﴿وَمَا تَنقِمُ مِنَّا إِلا أَنْ ءامَنَّا﴾ ‘And you do not resent us except because we believed’ (7:126): You find no fault in us save belief in the signs of Allah. They meant: You find no fault in us save what is the root of all virtues and honors, namely faith.”
al-Kashshāf ʿan Ḥaqāʾiq Ghawāmiḍ al-Tanzīl — Maḥmūd ibn ʿUmar al-Zamakhsharī
Ibn ʿĀshūr takes a closer look at this rhetorical description. He holds that the exception is connected in sense because faith was in fact the object of Pharaoh's resentment, even though it is a virtue by the measure of truth. The words reverse the measure of blame without necessarily falling within the familiar technical category of reinforcing praise with apparent blame.
This distinction shows how much the expression contains. It is true to what Pharaoh resents, and eloquent in disclosing the wrongness of the measure by which he judges the believers.
Then they said ﴿بِآيَاتِ رَبِّنَا﴾ “in the signs of our Lord” (7:126), going beyond saying only “We believed Moses.” Their faith rested on the clear proofs they recognized as coming from Allah. The signs here are Allah's proofs, shown at Moses' hands, foremost among them the miracle of the staff by which they watched their magic come undone.
The possessive construction with ﴿رَبِّنَا﴾ “our Lord” (7:126) conveys their new allegiance. Pharaoh wanted them subject to his permission. They affirm that the signs belong to the Lord they have come to know and believe in.
The words ﴿لَمَّا جَاءَتْنَا﴾ “when they came to us.” (7:126) connect faith to the appearance of the proof. Lammā can be temporal, meaning “We believed when the signs came to us,” or a particle requiring a response indicated by the preceding words, meaning “When they came to us, we believed in them.”
Both readings point to the speed of their response. Their faith arose when the proof became plain to them, quite apart from the prior agreement Pharaoh alleged.
The verse then makes a beautiful turn from addressing human beings to praying to the Creator: ﴿رَبَّنَا أَفْرِغْ عَلَيْنَا صَبْرًا﴾ “Our Lord, pour upon us patience” (7:126).
The word afrigh derives from emptying a vessel by pouring out what it contains until it is empty. Used here in asking for patience, it gives the image of patience as copious water poured over their souls until it covers them.
It is a deeply affecting image. The danger facing them was great. They asked for a great abundance of patience to cover their souls and help them stand firm at the hardest moments of the trial, beyond a little strength to endure the harm.
Fakhr al-Dīn al-Rāzī discusses this implication:
“The first point is that ﴿أفرغ علينا صبرا﴾ ‘pour upon us patience’ (7:126) is fuller than ‘send down patience upon us,’ since, as we have said, pouring out a vessel means pouring it out altogether. It is as though they asked Allah for all patience, rather than some of it. The second is that ﴿صبرا﴾ ‘patience’ (7:126) is indefinite, which points to completeness and fullness, that is, perfect and full patience.”
Mafātīḥ al-Ghayb (al-Tafsīr al-Kabīr) — Muḥammad ibn ʿUmar Fakhr al-Dīn al-Rāzī
The word ﴿صَبْرًا﴾ “patience” (7:126) appears as an indefinite noun, fitting for an appeal for patience vast enough to carry them through the trial. The prayer then closes with ﴿وَتَوَفَّنَا مُسْلِمِينَ﴾ “and let us die as Muslims [in submission to You].” (7:126).
The expression ﴿مُسْلِمِينَ﴾ “as Muslims [in submission to You]” (7:126) describes the condition of the speakers indicated by the pronoun in ﴿تَوَفَّنَا﴾ “let us die” (7:126). Take our souls while we remain firm in Islam, submitting to You, so that the harm threatening us does not turn us away from our religion.
The verse moves from identifying the cause of enmity to asking for the strength to stand, and then to the end they want to reach: that the gift of Islam remain with them to the end of life.
Interpretive and Reflective Outpourings
Three connected things establish the meaning of the verse. The magicians declare their innocence of the charge Pharaoh brought against them, show that faith was their response to the signs that appeared to them, and ask Allah to grant them patience with any torture they may suffer and to bring their lives to an end in Islam.
Their request for patience belongs to the threat they were facing and should be read in that setting. Pharaoh had threatened amputation of their hands and feet and crucifixion. They asked for patience with a full sense of how great the danger was.
Al-Māturīdī explains this:
“They may have asked for patience lest, if he inflicted the punishments he had threatened, they should prove unable to endure them and abandon faith. For that reason they asked their Lord for patience in what they faced, so they would stand firm in faith in Him.”
Taʾwīlāt Ahl al-Sunnah — Muḥammad ibn Muḥammad Abū Manṣūr al-Māturīdī
Their request for patience went beyond the expression of a courage untouched by weakness. They recognized that the human soul might falter in a severe trial and that steadfastness requires Allah's help.
They had recognized and believed the truth, but did not imagine that knowledge alone would suffice to bear everything Pharaoh threatened. Their honest stand went together with asking for help to maintain it.
Another point to clarify is the meaning of ﴿وَتَوَفَّنَا مُسْلِمِينَ﴾ “and let us die as Muslims [in submission to You].” (7:126). They are not necessarily asking to die sooner or for the threat to be fulfilled. They are asking Allah to keep them in faith until their lives end, however the end comes.
In this sense the verse is connected to the prayer of Joseph, peace be upon him, ﴿تَوَفَّنِي مُسْلِمًا وَأَلْحِقْنِي بِالصَّالِحِينَ﴾ “Cause me to die a Muslim and join me with the righteous.” (12:101), and to Abraham and Jacob's charge to their sons, ﴿فَلَا تَمُوتُنَّ إِلَّا وَأَنْتُم مُّسْلِمُونَ﴾ “so do not die except while you are Muslims.” (2:132).
What matters is remaining in submission to Allah and holding to the truth until death, independent of seeking death for its own sake.
One historical question the commentators address is whether Pharaoh did what he had threatened to do to the magicians or whether Allah delivered them from the punishment.
There are reports from Ibn ʿAbbās, Qatādah, and others that they began the morning as magicians and ended the evening as martyrs. Some commentators held that Pharaoh cut off their limbs and crucified them. Others believed that he never proceeded with the threat.
This passage and the other Qur’anic accounts of the story contain no explicit statement that the punishment was carried out or that it was not. Neither possibility warrants certainty on the apparent meaning of the prayer alone.
Abū Ḥayyān clarifies the matter:
“﴿ربنا أفرغ علينا صبراً وتوفّنا مسلمين﴾ ‘Our Lord, pour upon us patience and let us die as Muslims [in submission to You].’ (7:126). When he threatened them with amputation and crucifixion, they asked Allah Most High to grant them patience in whatever might befall them, should it befall them. Their request carries no indication that what he threatened actually happened to them, despite those who say that it does. His words ﴿وتوفّنا مسلمين﴾ ‘and let us die as Muslims [in submission to You].’ (7:126) do not indicate that the threat did not befall them, despite those who say that they do.”
al-Baḥr al-Muḥīṭ fī al-Tafsīr — Muḥammad ibn Yūsuf Abū Ḥayyān al-Andalusī
Such discipline in interpretation preserves the Qur’an's meaning from being crowded out by disputed reports. The passage brings out the greatness of the faith that kept them steadfast under threat. The historical particulars of what happened afterward are incidental to the lesson.
Another insight is that once the magicians exposed what Pharaoh really held against them, they left off debating him and turned to Allah in prayer. They understood that the man before them had ceased to seek proof and intended to make them submit by force.
This shows the difference between prolonging an argument that has lost its purpose and taking refuge with Allah after giving testimony to the truth. They said what they had to say, then asked their Lord to help them bear the consequences that might follow.
Spiritual Outpourings
How beautiful this prayer coming from men who came to faith at the moment the miracle appeared, then found themselves before a test they could not bear on their strength alone!
They said to Pharaoh what showed the true nature of their stand, then turned to Allah: ﴿رَبَّنَا أَفْرِغْ عَلَيْنَا صَبْرًا وَتَوَفَّنَا مُسْلِمِينَ﴾ “Our Lord, pour upon us patience and let us die as Muslims [in submission to You].” (7:126).
This shows the fullness of their need before Allah. Their new faith did not lead them to take steadfastness for granted or to suppose that their courage in declaring the truth would free them from needing their Lord's support when hardship arrived.
Al-Qushayrī describes the meaning:
“When they worked for Allah and suffered harm for Allah's sake, they turned to Allah in sincerity of purpose and asked for help from Allah. Such is the way of one who is for Allah: all of him relies on Allah.”
Laṭāʾif al-Ishārāt — ʿAbd al-Karīm ibn Hawāzin al-Qushayrī
A delicate spiritual truth comes to light. Believers may be strongest in their stand at just the moment they feel the greatest need of their Lord to make them firm. Dignity before an aggressor and humility before Allah go together. The first may well be the fruit of the second.
Part of the greatness of this scene is that the magicians who had looked to Pharaoh for favor now looked for Allah's bounty alone. Those who had come for an earthly reward now asked for patience and a good end.
Their prayer went further than asking Allah to take away their pain. They asked that pain not change the truth of their faith. They knew that, precious as bodily safety was, the greatest loss they could suffer was to be turned from the truth after knowing it.
This leaves the value of life and the horror of torture in full view. Harm is an injustice to be averted, and protecting life is an aim of Islamic law. Faith may give people strength to protect their conscience when they cannot repel all the injustice done to them.
Abū al-Suʿūd says:
“They then turned away from addressing him to show the resolve they held in their hearts concerning what they had said and to affirm it. They took refuge in Allah, mighty and majestic is He, and said ﴿رَبَّنَا أَفْرِغْ عَلَيْنَا صَبْرًا﴾ ‘Our Lord, pour upon us patience’ (7:126), meaning pour on us patience that covers us as water covers […] ﴿وَتَوَفَّنَا مُسْلِمِينَ﴾ ‘and let us die as Muslims [in submission to You].’ (7:126), remaining steadfast in the Islam given to us, without being turned from it by the threat.”
Irshād al-ʿAql al-Salīm ilā Mazāyā al-Kitāb al-Karīm — Muḥammad ibn Muḥammad al-ʿImādī Abū al-Suʿūd
The prayer asks for a good end, a concern that reaches beyond the experience of the magicians to every believer. A person may not know how life will end or what turns and trials are to come, but can know that their greatest hope is to meet Allah in faith and obedience.
This is the essence of their request. Their concern reached further than deliverance from Pharaoh in the moment. They asked to stand firm in Islam until death.
Psychological Outpourings
The verse provides a rare picture of courage joined to an awareness of human weakness.
The magicians stood firm before Pharaoh, answered his accusation, and declared that the only thing he held against them was their faith in Allah's signs. When they turned to their Lord they made no claim to be beyond fear. They asked for an abundance of patience to be poured over them, enabling them to bear what threatened them.
This is one of the finer meanings of inward strength. A strong person recognizes the gravity of what they face and seeks the help they need to stand firm without forsaking the truth they know. Denying fear or claiming to need no help shows little strength by itself.
Al-Saʿdī considers how much patience they needed:
“Then they prayed to Allah to make them firm and give them patience. ﴿رَبَّنَا أَفْرِغْ﴾ ‘Our Lord, pour’ (7:126) means pour, ﴿عَلَيْنَا صَبْرًا﴾ ‘upon us patience’ (7:126), that is, great patience, as the indefinite form indicates. This is a great trial that leads to loss of life. Much patience is needed for the heart to hold fast, the believer to be secure in his faith, and the great agitation he feels to pass.”
Taysīr al-Karīm al-Raḥmān fī Tafsīr Kalām al-Mannān — ʿAbd al-Raḥmān ibn Nāṣir al-Saʿdī
There is a difference between the stirring of courage the moment the truth comes to light and sustaining it when danger lasts and pain draws closer. A person may be able to state a conviction in a powerful moment and need far more support when its practical consequences come into view.
The magicians understood this. They did not regard the initial ardor of faith as an automatic guarantee of patience with all that would follow. They turned to Allah to grant them what they would need.
A further psychological insight is that when they changed from speaking to Pharaoh to speaking to Allah, they redirected their attention from the source of threat to the source of hope. They said to the king what declared their innocence, then turned to their Lord for the strength to endure the trial.
This helps in understanding resilience. In hardship, a person needs a source of meaning, hope that extends beyond the threatening situation, and sources of support that help them endure what they cannot immediately avert.
Faith does not remove emotional pain or make a person immune to distress. The need to seek help, protection, or treatment may remain. Certainty and prayer can be among the sources of strength that support a person in a trial.
Muḥammad Ḥusayn Faḍlallāh describes why they needed to pray:
“Then they turned back to Allah in a reverent, entreating spirit and with a fervent, deep prayer. They sought His help to face the situation with strong steadfast faith that would never be shaken or collapse, lest impulses of the soul that commands evil gain power over them, promising them safety and warning them of ruin, and so drive them to make unwarranted concessions.”
Min Waḥy al-Qurʾān — Muḥammad Ḥusayn Faḍlallāh
The concession at issue is abandoning a truth they had established, and the use of legitimate means to protect oneself and repel injustice remains valid. The desire for safety is natural and deserving of regard. The test comes when a person is tempted to let it drive them to deny what they know to be true.
Pedagogical Outpourings
The verse lays out three complementary foundations of education in faith: honesty in responding to evidence, courage in declaring the truth, and asking for help to stand by it.
The magicians recognized that Moses' miracle was outside the order of magic, so they believed. They then faced Pharaoh's accusation and threat without making his favor the measure of what they should believe. Finally they turned to Allah to ask for patience and a good end, without letting the strength of their stand make them conceited.
The words ﴿لَمَّا جَاءَتْنَا﴾ “when they came to us.” (7:126) teach readiness to accept the truth when it appears, without deliberately putting it off to preserve an advantage or position. The words ﴿وَمَا تَنقِمُ مِنَّا﴾ “And you do not resent us” (7:126) teach us to state our innocence of charges plainly and to refuse to let fear of a person in power make us confess to an offense that did not occur.
One of the most important lessons is that patience goes beyond passively accepting every injustice. The magicians answered the charge before they prayed for patience and made clear that their faith was no crime. They then asked Allah for help with what might follow from their stand.
Al-Shawkānī says:
“Then they left off addressing him and broke off their conversation with him. They turned to address the Exalted Presence, entrusting the matter to Him and asking Him, mighty and majestic is He, to keep them firm through this trial with patience. They said ﴿رَبَّنَا أَفْرِغْ عَلَيْنَا صَبْرًا﴾ ‘Our Lord, pour upon us patience’ (7:126). Ifrāgh means pouring. Pour it on us until it overflows and covers us. They asked for the fullest kind of patience to make themselves ready for the punishment that would descend on them from the enemy of Allah.”
Fatḥ al-Qadīr — Muḥammad ibn ʿAlī al-Shawkānī
This teaches us to combine action where we are able with reliance where we have no control. A person fulfills the duty of clarifying the truth and answering the charge, then takes refuge in their Lord and asks for help with causes and outcomes they may be powerless to govern.
A further lesson concerns a good end. The magicians might have said “Make us victorious in every encounter.” They said ﴿وَتَوَفَّنَا مُسْلِمِينَ﴾ “and let us die as Muslims [in submission to You].” (7:126). Their measure of success became wider than the immediate outcome: to preserve their faith to the end of their lives.
Al-Māturīdī connects this prayer to the prayers of the prophets:
“Such were the prayers of the prophets, as Joseph said ﴿توفّني مسلما﴾ ‘Cause me to die a Muslim’ (12:101), to the end of the verse [Yūsuf 12:101]. So too did Abraham enjoin his sons when he said ﴿إن الله اصطفى لكم الدين فلا تموتن إلا وأنتم مسلمون﴾ ‘indeed Allah has chosen for you this religion, so do not die except while you are Muslims.’ (2:132). Thus every believer and Muslim must humbly ask Allah at all times and entreat Him at every hour lest faith be taken away.”
Taʾwīlāt Ahl al-Sunnah — Muḥammad ibn Muḥammad Abū Manṣūr al-Māturīdī
Teaching steadfastness is thus part of teaching faith itself. Knowing the truth at a single moment is insufficient. People need to care for their hearts and deeds to stay true to it as conditions change.
Contemporary Outpourings
The forms of political, social, and professional pressure may change. This verse continues to speak deeply to human beings about independence of conscience and faithfulness to what they know.
Pharaoh wanted to punish the magicians because they believed the truth that had become evident to them, then portrayed their faith as a conspiracy against the city's inhabitants. They answered by exposing the charge at its root. We engaged in none of the scheming you attribute to us. We believed in the signs of our Lord when they came to us.
This reminds us of the gravity of treating a conviction grounded in evidence as a crime, or explaining a person's change of mind by a charge unsupported by proof and then using punishment to force them to change back.
Sayyid Quṭb describes what the scene shows:
“One who knows where to turn in the struggle and to whom to turn asks the Lord for patience through the trial and death in Islam, without seeking safety and well-being from the adversary: ﴿ربنا أفرغ علينا صبراً وتوفنا مسلمين﴾ ‘Our Lord, pour upon us patience and let us die as Muslims [in submission to You].’ (7:126). Tyranny stands powerless before faith, awareness, and inward assurance.”
Fī Ẓilāl al-Qurʾān — Sayyid Quṭb Ibrāhīm Ḥusayn al-Shādhilī
This is a literary picture of the magicians' stand before Pharaoh. The wronged remain entitled to seek safety, appeal to the courts, and enlist the aid of those who can protect them. Warding off injustice, seeking well-being, and preserving life are legitimate. The Qur’an here depicts believers under severe threat after they declared their faith.
In present-day life people may face pressure to change truthful testimony, deny a finding established to their satisfaction, or withdraw from a moral stand for fear of losing an advantage or position. These situations vary and cannot all be equated with the magicians' test before Pharaoh. They do remind us to keep personal interest from becoming a reason to falsify the truth.
Another contemporary meaning concerns enduring hardship. The magicians prayed for patience while certain of the truth. This reminds us that ethical stands call for psychological and social preparation, and courage requires more than declarations. It needs the support of steadfastness, judgment, and help.
The verse uses ﴿أَفْرِغْ﴾ “pour” (7:126), going beyond a simple “Give us” to convey how much they need abundant support. Patience can be understood as the ability to face an ordeal without letting it make a person betray what they know to be right. The hardship itself remains real.
Another lesson for today is the need to distinguish standing by a principle from standing stubbornly by a mistake. The magicians abandoned their first position when it became clear it was false, despite having announced it publicly. They held to their faith once they knew its proof.
This difference matters greatly. Persistence can serve error, and change can take courage. The virtue lies in remaining faithful to the truth, being ready to reconsider when one's position departs from it and ready to stand by it once it becomes plain.
At this point the story of the magicians reaches a height of spiritual grandeur. They began in the contest for Pharaoh's reward and ended asking Allah for ample patience and death in Islam. They sought higher standing with the king at the beginning of the scene and ended with no greater hope than to keep the faith to which Allah had guided them.
Here we reach the deepest part of the change. Their courage came from the certainty that the truth they had recognized was too great to sell for Pharaoh's favor, and from their need before Allah for help to stand by it. They made no claim to be able to ward off every harm Pharaoh threatened.
How extraordinary that men who had just been earning their living with magic in opposition to Allah's sign now close their dialogue with a prayer worthy of every heart that fears being tried in faith and asks for a good end.
Ibn ʿĀshūr considers the beauty of this ending:
“The Qur’an gives no account here, or in Sūrat al-Shuʿarāʾ or Ṭā Hā, of Pharaoh actually carrying out his threat. The purpose of the Qur’anic stories is to draw a lesson from what contains the lesson: Allah's support of Moses, the magicians' finding guidance, and their firmness in faith after facing a threat with hearts at peace.”
al-Taḥrīr wa-l-Tanwīr — Muḥammad al-Ṭāhir Ibn ʿĀshūr
This explains why the scene ends with a prayer. The lesson has reached its end when we have watched the truth appear, the magicians believe, and the ruler threaten them. Then we find no greater thing in their turning to Allah than their request for patience and steadfastness in Islam.
Pharaoh chose to close his speech with a threat against their bodies. They chose to close theirs with a prayer protecting hearts.
The king thought his utmost threat could be to cut their lives short. They knew their highest concern was to end their lives as Muslims, in submission to Allah, the Lord of all the worlds.
Thus the Qur’an brings this brilliant scene to a close with believing hearts raising their need to Allah. The brutality Pharaoh threatened remains outside the closing picture.
They told the king what showed their innocence, then found no truer thing to say to their Lord than ﴿رَبَّنَا أَفْرِغْ عَلَيْنَا صَبْرًا وَتَوَفَّنَا مُسْلِمِينَ﴾ “Our Lord, pour upon us patience and let us die as Muslims [in submission to You].” (7:126).
The sūrah passes from this great scene of faith to another stage of Moses' struggle with Pharaoh and his elite. Arrogance and cruelty will go on, and truth will continue to face the domination of falsehood, until Allah's established way takes its course in the fate of the wrongdoers and in the deliverance of the believers.
These words remain an ending worthy of people whose greatest gain that day was no payment or position. It was a heart that knew Allah, a tongue that testified to the truth, a soul that asked its Lord for patience, and the hope of meeting Him in Islam.
﴿وَمَا تَنقِمُ مِنَّآ إِلَّآ أَنْ ءَامَنَّا بِـَٔايَٰتِ رَبِّنَا لَمَّا جَآءَتْنَاۚ رَبَّنَآ أَفْرِغْ عَلَيْنَا صَبْرًا وَتَوَفَّنَا مُسْلِمِينَ﴾
And you do not resent us except because we believed in the signs of our Lord when they came to us. Our Lord, pour upon us patience and let us die as Muslims [in submission to You]."
(Al-Aʿrāf 7:126)