An-Naml 27:40
قَالَ ٱلَّذِى عِندَهُۥ عِلْمٌ مِّنَ ٱلْكِتَـٰبِ أَنَا۠ ءَاتِيكَ بِهِۦ قَبْلَ أَن يَرْتَدَّ إِلَيْكَ طَرْفُكَ ۚ فَلَمَّا رَءَاهُ مُسْتَقِرًّا عِندَهُۥ قَالَ هَـٰذَا مِن فَضْلِ رَبِّى لِيَبْلُوَنِىٓ ءَأَشْكُرُ أَمْ أَكْفُرُ ۖ وَمَن شَكَرَ فَإِنَّمَا يَشْكُرُ لِنَفْسِهِۦ ۖ وَمَن كَفَرَ فَإِنَّ رَبِّى غَنِىٌّ كَرِيمٌ
But the one who had knowledge of the Scripture said,9 “I can bring it to you in the blink of an eye.” So when Solomon saw it placed before him, he exclaimed, “This is by the grace of my Lord to test me whether I am grateful or ungrateful.
And whoever is grateful, it is only for their own good.
But whoever is ungrateful, surely my Lord is Self-Sufficient, Most Generous.”
— Mustafa Khattab
Where this verse sits
Other English translations
Said one who had knowledge of the Book: "I will bring it to you within the twinkling of an eye!" Then when (Solomon) saw it placed firmly before him, he said: "This is by the Grace of my Lord!- to test me whether I am grateful or ungrateful! and if any is grateful, truly his gratitude is (a gain) for his own soul; but if any is ungrateful, truly my Lord is Free of all Needs, Supreme in Honour !"
Answered he who was illumined by revelation: “[Nay,] as for me - I shall bring it to thee ere the twinkling of thy eye ceases!” And when he saw it truly before him, he exclaimed: “This is [an outcome] of my Sustainer’s bounty, to test me as to whether I am grateful or ungrateful! However, he who is grateful [to God] is but grateful for his own good; and he who is ungrateful [should know that], verily, my Sustainer is self-sufficient, most generous in giving!”
One with whom was knowledge of the Scripture said: I will bring it thee before thy gaze returneth unto thee. And when he saw it set in his presence, (Solomon said: This is of the bounty of my Lord, that He may try me whether I give thanks or am ungrateful. Whosoever giveth thanks he only giveth thanks for (the good of) his own soul: and whosoever is ungrateful (is ungrateful only to his own soul's hurt). For lo! my Lord is Absolute in independence, Bountiful.
but one of them who had some knowledge of the Scripture said, ‘I will bring it to you in the twinkling of an eye.’ When Solomon saw it set before him, he said, ‘This is a favour from my Lord, to test whether I am grateful or not: if anyone is grateful, it is for his own good, if anyone is ungrateful, then my Lord is self-sufficient and most generous.’
He who had knowledge from the Book said, “I will bring it to you before your glance returns to you.” And when he saw it settled before him, he said, “This is from the grace of my Lord, to test me, whether I am grateful or ungrateful. He who is grateful, his gratitude is to his own credit; but he who is ungrateful—my Lord is Independent and Generous.”
Said he who has knowledge of the Book: I will bring it to thee before thy glance goes back to thee. And, then, when he saw that which is settled before him, he said: This is from the grace of my Lord to try me whether I give thanks or am ungrateful. And whoever gave thanks, truly, he gives thanks for himself. And whoever was ungrateful, then, truly, my Lord is Rich, Generous.
Word by word
in Quran+.
Roots in this verse
قَالَ is the most frequent verb in the Quran — by a wide margin, appearing over 1,600 times.
It frames the Quran as a living conversation: between God and the angels, between prophets and their peoples, between believers and God in prayer.
The root carries the full weight of meaningful speech — not idle chatter but words that move history.
Its noun قَوْل (a saying, a word) is distinct from كَلَام (speech as a continuous act); قَوْل is a discrete, weighty utterance.
What lies 'with' someone; 'with God' (ʿinda Allāh) marks what is truly lasting and valued.
عَلِمَ is the primary verb for knowing in Arabic, covering both acquired knowledge and innate awareness.
In the Quran, knowledge has a radical asymmetry: God is ٱلْعَلِيم (the All-Knowing), whose knowledge is absolute and encompasses the unseen (ٱلْغَيْب); human knowledge is always partial, derived, and dependent on divine teaching.
عَلَّمَ (he taught, Form II) is used for God teaching Adam the names, teaching humanity by the pen — knowledge as divine gift rather than human achievement.
كَتَبَ means to write.
In the Quran it covers both physical writing and divine decree: كَتَبَ ٱللَّهُ (God has written / ordained).
The root gives كِتَاب (the Book — the Quran, the Torah, the Gospel, and the cosmic Book of Decrees), كَاتِب (a scribe), and مَكْتُوب (what is written / what is decreed).
Writing and decreeing share a root because in Arabic, to write something down IS to make it fixed and certain — what God writes, happens.
This root carries two related meanings depending on form: Form I (أَتَى) means to come in a purposeful, fulfilling way — the arrival of something that was awaited or promised.
Form IV (آتَى) means to give, to bestow, to grant — and in the Quran this form is almost always used for God's gifts: scripture, wisdom, kingship, provision.
The Arabic subtlety is profound: coming and giving share a root because true arrival *always brings something*.
قَبِلَ means to accept, to receive, to welcome.
قِبْلَة (the direction of prayer) comes from the same root — it is what you face toward, what you receive.
In the Quran, God's قَبُول (acceptance) of deeds, prayers, and repentance is among the most sought gifts: رَبَّنَا تَقَبَّلْ مِنَّا (Our Lord, accept from us — 2:127) is the prayer of Abraham and Ishmael as they raised the foundations of the Kaaba.
The acceptance of an act by God is its ultimate validation.
Sending back, restoring, turning away; also being returned to God.
رَأَى covers both what the eye perceives and what the mind grasps.
In the Quran, seeing is never neutral: it is always an invitation to understand.
أَلَمْ تَرَ (Have you not seen?) is a rhetorical device that appears dozens of times, asking the reader to observe something in creation and draw the correct conclusion about God.
رُؤْيَا (a dream-vision) is a specific form of inner seeing given to prophets — Abraham's vision of sacrificing his son, Joseph's dream of the sun and stars.
Qarār, a stable resting-place; qurrat ʿayn, the coolness and delight of the eye.
Overflowing grace (faḍl) granted beyond desert, and the preferring of one over another.
رَبَّ means to nurture, to raise, to be the sustaining master of something.
الرَّبّ (the Lord) is God's most used title in the Quran — appearing over 900 times.
Unlike مَلِك (king) which emphasizes sovereignty, رَبّ emphasizes the nurturing relationship: the Lord who raises, feeds, sustains, and develops.
رَبَّنَا (Our Lord) is the most frequent supplication form in the Quran — the prayer that presupposes a relationship of care, not merely of power.
بَلَا and ابْتَلَى (Form VIII) mean to test, to try, to put to the proof.
ابتلاء (the trial) is one of the Quran's central mechanisms of human development — God tests the believers not because He does not know the result but to establish it outwardly, to give the tested a chance to demonstrate their faith.
وَلَنَبْلُوَنَّكُم بِشَىْءٍ مِّنَ الْخَوْفِ وَالْجُوعِ (We will certainly test you with some fear, hunger — 2:155) — the trials are known, graduated, and purposeful.
شَكَرَ means to give thanks.
In the Quran, شُكْر (gratitude) is both a moral duty and a self-multiplying act: لَئِن شَكَرْتُمْ لَأَزِيدَنَّكُمْ (If you are grateful, I will give you more — 14:7).
The Quran presents gratitude not as polite acknowledgment but as the recognition of the source of all gifts — and this recognition is itself worship.
كَفَرَ (disbelief) and كُفْر (ingratitude) share a root because ingratitude toward God's gifts is a form of covering the truth of His generosity.
The root كَفَرَ literally means to cover or bury — a farmer who buries a seed is a كَافِر in classical Arabic.
Applied to faith, كُفْر is the deliberate covering of a truth one already knows.
The Quran's use of this root implies that disbelief is not intellectual confusion but a willful act of concealment — the truth of God's existence and bounty is self-evident, and كُفْر is the act of burying it under ingratitude and pride.
نَفَسَ means to breathe; النَّفْس is the soul, the self, the whole person.
In the Quran, the نَفْس is the unit of moral accountability: كُلُّ نَفْسٍ بِمَا كَسَبَتْ رَهِينَةٌ (Every soul is held in pledge for what it has earned — 74:38).
Each نَفْس is unique, irreplaceable, and solely responsible for its own deeds.
The Quran speaks to نَفْسٌ وَاحِدَة (a single soul) — the universal address to the individual in their singularity.
Richness and freedom from need (ghanī); God needs nothing while all else is poor before Him.
Karam, noble generosity; God the Most Generous (al-Karīm), and the honored ones (kirām).
Commentary
Notes by Mustafa Khattab
9 This refers to ’Aṣif ibn Barkhiya, a knowledgeable and righteous assistant of Solomon.
Notes by Muhammad Asad
32 Lit., "he who had knowledge out of [or "through"] revelation (al-kitab)" - i.e., Solomon himself (Razi).33
I.e., faster than any magic could achieve: thus alluding to the symbolic nature of the forthcoming appearance of the "throne".
Here, as in the whole of the story of Solomon and the Queen of Sheba, symbolism and legendary "fact" are subtly intertwined, evolving into an allegory of the human soul’s awakening to a gradual realization of spiritual values.34
Lit., "established before him".
Since the verbal form istaqarra and its participle mustaqirr often indicate no more than that something "has being" or "exists" (cf. Lane VII, 2500), the phrase ra’ahu mustaqirran indahu may be understood as "he saw it being (i.e., actually) before him": hence my rendering.35
I.e., "whether I attribute my spiritual powers to God or, vaingloriously, to myself".
Notes by Yusuf Ali
3275 The symbolic meaning still continues. The big 'Ifrit had boasted of his brute strength, and his reliability. But this is not enough to transform a power (throne) based on materialism into one based on inward knowledge, knowledge of the heart and spirit, the sort of knowledge that comes from the Book of the Grace of Allah, the spirit of truth and benevolence which is the invisible magic of Prophets of Allah. Even if worldly power and common honesty may be able to effect some good, it will take a comparatively long time, while the magic of spiritual love acts instantaneously. Solomon was thankful to Allah for he had men endowed with such power, and he had the throne of Bilqis transported to his Court and transformed as he desired, without Bilqis even knowing it. (R).
3276 If Solomon had been ungrateful to Allah, i.e., if he had worked for his own selfish or worldly ends, he could have used the brute strength of the "Ifrit to add to his worldly strength and glory. Instead, he uses the higher magic of the Book-or the Spirit-to transform the throne of Bilqis for her highest good, which means also the highest good for her subjects, by the divine Light. He had the two alternatives, and he chooses the better, and he thus shows his gratitude to Allah for the Grace He had given him.
3277 Man's gratitude to Allah is not a thing that benefits Allah, for Allah is high above all needs; it benefits a man's soul and gives him higher rank in the spiritual world. Per contra, man's ingratitude will not detract from Allah's Glory and Honour or the value of Allah's generous gifts to man: for Allah as supreme in honour, glory and generosity. Karim in Arabic involved all three significations.
Tazkirul Quran · tafsir of 27:38 to 27:40
Though Solomon was endowed with extraordinary power, he planned to subjugate the Sabean people by demonstrating his power rather than by using it.
So, through a special agent of his, he arranged to have the Queen’s throne shifted from her palace in Ma‘arib to Jerusalem (Palestine).
The idea of having the throne brought to him probably occurred to him when on the return of the presents, the Queen of Sheba started out from Yemen for Palestine, so that she could come to Solomon’s court and have direct talks with him.
This journey of the Queen, undertaken with much pomp and ceremony, must have started after her diplomatic deputation had returned and narrated to her the wise words of Solomon, testified to the nobility of his character and described the magnificence of his court.
The distance between Ma‘arib and Jerusalem is about fifteen hundred miles.
This long distance was covered in such a way that no sooner had the words of command fallen from Solomon’s lips than the jewel-studded throne was there before him.
In spite of this extraordinary power, feelings of pride did not arise in him.
He remained the embodiment of modesty and kept bowing down before God.
Related hadith
Sahih al-Bukhari - Hadith 1354, 1355
If a boy becomes a Muslim and then dies, should a funeral prayer be offered for him? Should Islam be explained to a boy?
Narrated Ibn `Umar:
`Umar set out along with the Prophet (p.b.u.h) with a group of people to Ibn Saiyad till they saw him playing with the boys near the hillocks of Bani Mughala. Ibn Saiyad at that time was nearing his puberty and did not notice (us) until the Prophet (ﷺ) stroked him with his hand and said to him, "Do you testify that I am Allah's Messenger?" Ibn Saiyad looked at him and said, "I testify that you are the Messenger of illiterates." Then Ibn Saiyad asked the Prophet (p.b.u.h), "Do you testify that I am Allah's Messenger?" The Prophet (p.b.u.h) refuted it and said, "I believe in Allah and His Apostles." Then he said (to Ibn Saiyad), "What do you think?" Ibn Saiyad answered, "True people and liars visit me." The Prophet (ﷺ) said, "You have been confused as to this matter." Then the Prophet (ﷺ) said to him, "I have kept something (in my mind) for you, (can you tell me that?)" Ibn Saiyad said, "It is Al-Dukh (the smoke)." (2) The Prophet (ﷺ) said, "Let you be in ignominy. You cannot cross your limits." On that `Umar, said, "O Allah's Messenger! Allow me to chop his head off." The Prophet (p.b.u.h) said, "If he is he (i.e. Dajjal), then you cannot overpower him, and if he is not, then there is no use of murdering him." (Ibn `Umar added): Later on Allah's Messenger (p.b.u.h) once again went along with Ubai bin Ka`b to the date-palm trees (garden) where Ibn Saiyad was staying. The Prophet (p.b.u.h) wanted to hear something from Ibn Saiyad before Ibn Saiyad could see him, and the Prophet (p.b.u.h) saw him lying covered with a sheet and from where his murmurs were heard. Ibn Saiyad's mother saw Allah's Apostle while he was hiding himself behind the trunks of the date-palm trees. She addressed Ibn Saiyad, "O Saf ! (and this was the name of Ibn Saiyad) Here is Muhammad." And with that Ibn Saiyad got up. The Prophet (ﷺ) said, "Had this woman left him (Had she not disturbed him), then Ibn Saiyad would have revealed the reality of his case.
Sahih | Related to Quran 27:40
Sahih al-Bukhari - Hadith 3055
How to present Islam to a (non-Muslim) boy
Narrated Ibn 'Umar:
Umar and a group of the companions of the Prophet (ﷺ) set out with the Prophet to Ibn Saiyad. He found him playing with some boys near the hillocks of Bani Maghala. Ibn Saiyad at that time was nearing his puberty. He did not notice (the Prophet's presence) till the Prophet (ﷺ) stroked him on the back with his hand and said, "Ibn Saiyad! Do you testify that I am Allah's Messenger?" Ibn Saiyad looked at him and said, "I testify that you are the Apostle of the illiterates."
Then Ibn Saiyad asked the Prophet. "Do you testify that I am the apostle of Allah?" The Prophet (ﷺ) said to him, "I believe in Allah and His Apostles." Then the Prophet (ﷺ) said (to Ibn Saiyad). "What do you see?" Ibn Saiyad replied, "True people and false ones visit me." The Prophet said, "Your mind is confused as to this matter." The Prophet (ﷺ) added, " I have kept something (in my mind) for you." Ibn Saiyad said, "It is Ad-Dukh." The Prophet (ﷺ) said (to him), "Shame be on you! You cannot cross your limits." On that 'Umar said, "O Allah's Messenger! Allow me to chop his head off." The Prophet (ﷺ) said, "If he should be him (i.e. Ad-Dajjal) then you cannot overpower him, and should he not be him, then you are not going to benefit by murdering him."
Sahih | Related to Quran 27:40
Sahih al-Bukhari - Hadith 3056, 3057
How to present Islam to a (non-Muslim) boy
Narrated Ibn Umar:
(Later on) Allah's Messenger (once again) went along with Ubai bin Ka'b to the garden of date-palms where Ibn Saiyad was staying. When the Prophet entered the garden, he started hiding himself behind the trunks of the date-palms as he wanted to hear something from the Ibn Saiyad before the latter could see him. Ibn Saiyad was lying in his bed, covered with a velvet sheet from where his murmurs were heard. Ibn Saiyad's mother saw the Prophet (ﷺ) while he was hiding himself behind the trunks of the date-palms. She addressed Ibn Saiyad, "O Saf!" (And this was his name). Ibn Saiyad got up. The Prophet (ﷺ) said, "Had this woman let him to himself, he would have revealed the reality of his case." Then the Prophet (ﷺ) got up amongst the people, glorifying Allah as He deserves, he mentioned Ad-Dajjal, saying, "I warn you about him (i.e. Ad-Dajjal) and there is no prophet who did not warn his nation about him, and Noah warned his nation about him, but I tell you a statement which no prophet informed his nation of. You should understand that he is a one-eyed man and Allah is not one-eyed."
Sahih | Related to Quran 27:40
Sahih al-Bukhari - Hadith 6173-6175
The saying of one man to another: Ikhsa
Narrated `Abdullah bin `Umar:
`Umar bin Al-Khattab set out with Allah's Messenger, and a group of his companions to Ibn Saiyad. They found him playing with the boys in the fort or near the Hillocks of Bani Maghala. Ibn Saiyad was nearing his puberty at that time, and he did not notice the arrival of the Prophet (ﷺ) till Allah's Apostle stroked him on the back with his hand and said, "Do you testify that I am Allah's Messenger?" Ibn Saiyad looked at him and said, "I testify that you are the Apostle of the unlettered ones (illiterates)". Then Ibn Saiyad said to the Prophets . "Do you testify that I am Allah's Messenger?" The Prophet denied that, saying, "I believe in Allah and all His Apostles," and then said to Ibn Saiyad, "What do you see?" Ibn Saiyad said, "True people and liars visit me." The Prophet (ﷺ) said, "You have been confused as to this matter." Allah's Messenger (ﷺ) added, "I have kept something for you (in my mind)." Ibn Saiyad said, "Ad-Dukh." The Prophet (ﷺ) said, "Ikhsa (you should be ashamed) for you can not cross your limits." `Umar said, "O Allah's Messenger! Allow me to chop off h is neck." Allah's Apostle said (to `Umar). "Should this person be him (i.e. Ad-Dajjal) then you cannot over-power him; and should he be someone else, then it will be no use your killing him." `Abdullah bin `Umar added: Later on Allah's Messenger (ﷺ) and Ubai bin Ka`b Al-Ansari (once again) went to the garden in which Ibn Saiyad was present. When Allah's Messenger (ﷺ) entered the garden, he started hiding behind the trunks of the date-palms intending to hear something from Ibn Saiyad before the latter could see him. Ibn Saiyad was Lying on his bed, covered with a velvet sheet from where his mumur were heard. Ibn Saiyad's mother saw the Prophet and said, "O Saf (the nickname of Ibn Saiyad)! Here is Muhammad!" Ibn Saiyad stopped his murmuring. The Prophet (ﷺ) said, "If his mother had kept quiet, then I would have learnt more about him." `Abdullah added: Allah's Messenger (ﷺ) stood up before the people (delivering a sermon), and after praising and glorifying Allah as He deserved, he mentioned the Ad-Dajjal saying, "I warn you against him, and there has been no prophet but warned his followers against him. Noah warned his followers against him but I am telling you about him, something which no prophet has told his people of, and that is: Know that he is blind in one eye where as Allah is not so."
Sahih | Related to Quran 27:40
Sahih Muslim - Hadith 2930 a, 2931, 169 d
Ibn Sayyad
'Abdullah b. Umar reported: 'Umar b. Khattab went along with Allah's Messenger (ﷺ) in the company of some persons to Ibn Sayyad that he found him playing with children near the battlement of Bani Maghala and Ibn Sayyad was at that time just at the threshold of adolescence and he did not perceive (the presence of Holy Prophet) until Allah's Messenger (ﷺ) struck his back with his hands. Allah's Messenger (ﷺ) said: Ibn Sayyad, don't you bear witness that I am the messenger of Allah? Ibn Sayyad looked toward him and he said: I bear witness to the fact that you the messenger of the unlettered. Ibn Sayyad said to the Allah's Messenger (ﷺ): Do you bear witness to the fact that I am the messenger of Allah? Allah's Messenger (ﷺ) rejected this and said: I affirm my faith in Allah and in His messengers. Then Allah's Messenger (ﷺ) said to him: What do you see? Ibn Sayyad said: It is a Dukh. Thereupon Allah's Messenger (ﷺ) said: May you be disgraced and dishonoured, you would not not be able to go beyond your rank. 'Umar b. Khattab said: Allah's Messenger, permit me that I should strike his neck. Thereupon Allah's Messenger (ﷺ) said: If he is the same (Dajjal) who would appear near the Last Hour, you would not be able to overpower him, and if he is not that there is no good for you to kill him. 'Abdullah b. 'Umar further narrated that after some time Allah's Messenger (ﷺ) and Ubayy b. Ka'b went towards the palm trees where Ibn Sayyad was. When Allah's Messenger (ﷺ) went near the tree he hid himself behind a tree with the intention of hearing something from Ibn sayyad before Ibn Sayyad could see him, but Allah's Messenger (ﷺ) saw him on a bed with a blanket around him from which a murmuring sound was being heard and Ibn Sayyad's mother saw Allah's Messenger (ﷺ) behind the trunk of the palm tree. She said to Ibn Sayyad: Saf (that being his name), here is Muhammad. Thereupon Ibn Sayyad jumped up murmuring and Allah's Messenger (ﷺ) said: If she had left him alone he would have made things clear. Abdullah b. Umar told that Allah's Messenger (ﷺ) stood up amongst the people and lauded Allah as He deserved, then he made a mention of the Dajjal and said: I warn you of him and there is no Prophet who has not warned his people against the Dajjal. Even Noah warned (against him) but I am going to tell you a thing which no Prophet told his people. You must know that he (the Dajjal) is one-eyed and Allah, the Exalted and Glorious, is not one-eyed. Ibn Shihab said: 'Umar b. Thabit al-Ansari informed me that some of the Companions of Allah's Messenger (ﷺ) informed him that the day when Allah's Messenger (ﷺ) warned people against the Dajjal, he also said: There would be written between his two eyes (the word) Kafir (infidel) and everyone who would resent his deeds would be able to read or every Muslim would be about to read, and he also said: Bear this thing in mind that none amongst you would be able to see Allah, the Exalted and Glorious, until he dies.
Sahih | Related to Quran 27:40
Topics
Each topic opens every verse on it. Browse all the topics, or install Quran+ Web on your phone to enjoy the full power behind this page.
One of the most powerful Quran apps, by IslamiCity.
Taking you to Surah An-Naml 27:40.
The first visit can take a few seconds. Please wait.
Quran+ is IslamiCity's Quran study app: listen, read the Mushaf, learn Tajweed, search by voice.
Open this verse in Quran+ · Quran+ home
Put Quran+ on your Home Screen
Open Quran+ first. Then tap the Share button in Safari and choose Add to Home Screen.