General Context
After the preceding verse affirmed that all that is in the heavens and the earth belongs to Allah and that He is the Self-Sufficient, the Praiseworthy, this verse opens another window onto what divine sufficiency means: the fullness of His knowledge, the fullness of His power, the fullness of His will, the fullness of His speech, and the fullness of His governance. Allah’s dominion is not merely vast; His words are inexhaustible. His authority does not merely encompass all things; His knowledge knows no bounds. His creation does not merely exist in the heavens and the earth; behind every created thing is a word, behind every decree a wisdom, and behind every command of His a shoreless sea of knowledge and will.
Sayyid Quṭb paused in awe before this verse, presenting it as a cosmic scene that brings a boundless meaning within reach of the human senses. People know the wood from which pens are made, the sea that resembles ink, and the writing that preserves words. The Qur’an takes what they know and expands it to the furthest reaches of their imagination: every tree on earth becomes pens, the sea becomes ink, and seven more seas replenish it. Then comes the result: ﴿مَّا نَفِدَتۡ كَلِمَٰتُ ٱللَّهِ﴾ (“the words of Allah would not be exhausted” · 31:27). All that is finite, even when gathered, multiplied, and replenished, remains finite. When it faces the infinite, its poverty, its powerlessness, and its limits become apparent.[1]
In explaining the image, al-Ṭabarī said that if the trees of the earth were whittled into pens, the sea were made into ink, and the words of Allah were written with those pens and that ink, “those pens would break, that ink would run out, and the words of Allah would not run out” — Jāmiʿ al-Bayān ʿan Taʾwīl Āy al-Qurʾān — Muḥammad ibn Jarīr al-Ṭabarī.[2]
Rhetorical Outpourings
The verse opens with ﴿وَلَوۡ﴾ (“And if” · 31:27), which makes room for an impossible or imagined supposition, not to assert that it will happen, but to bring within reach of our minds a meaning they cannot fully grasp. The Qur’an does not say that the trees will become pens or the seas will become ink. Rather, it says that if you had at your disposal all the means of writing and recording you could possibly imagine, they still could not encompass the words of Allah. The image awakens the imagination so that it may recognize its own limits.
Then comes ﴿أَنَّمَا فِي ٱلۡأَرۡضِ مِن شَجَرَةٍ أَقۡلَٰمٞ﴾ (“whatever trees upon the earth were pens” · 31:27). The verse does not use the plural “من أشجار” (“of trees”). Instead, it uses the singular ﴿شَجَرَةٍ﴾ (“trees” · 31:27) in a construction that includes every member of the category. That is, not a single tree on earth would be left out of the supposition that all were made into pens, large or small, in a valley or on a mountain, in a forest or in a desert. Ibn ʿĀshūr said that ﴿مِن شَجَرَةٍ﴾ (31:27) clarifies the relative pronoun ﴿مَا﴾ (31:27), which is why the singular is used rather than the plural — al-Taḥrīr wa-l-Tanwīr, Muḥammad al-Ṭāhir Ibn ʿĀshūr.[1]
The word ﴿أَقۡلَٰمٞ﴾ (“pens” · 31:27) takes the tree from a life of growth and turns it into an instrument of writing. The tree that was shade and fruit, root and trunk, becomes pens in the Qur’anic image, as though the whole universe were getting ready to write something of Allah’s words. Not one pen, but more pens than the imagination can count: many pens can be made from a single tree, so what of all the trees on earth?
Then comes ﴿وَٱلۡبَحۡرُ يَمُدُّهُۥ﴾ (“and the sea [was ink], replenished” · 31:27). After the pens comes the ink. To human perception, the sea is a symbol of vastness, abundance, depth, and expanse. Since pens cannot write without ink, the Qur’an makes the whole sea ink. But it does not stop there. It says: ﴿مِنۢ بَعۡدِهِۦ سَبۡعَةُ أَبۡحُرٖ﴾ (“thereafter by seven [more] seas” · 31:27). Here the supply is replenished again and again, as though seven other seas came to replenish the first just as it was about to run dry. Even then, the words of Allah remain inexhaustible.
Ibn ʿĀshūr said that ﴿يَمُدُّهُ﴾ (“replenished” · 31:27) means to supply it with more ink, the ink used for writing. The meaning is to give us some sense of how incapable created beings would be of encompassing Allah’s speech if it were supposed that all of it could be written down — al-Taḥrīr wa-l-Tanwīr, Muḥammad al-Ṭāhir Ibn ʿĀshūr.[2]
Here the number ﴿سَبۡعَةُ﴾ (“seven” · 31:27) emphasizes abundance; it does not limit Allah’s knowledge to any quantity corresponding to that number. The Qur’an takes the greatest abundance the Arab mind can conjure up and then shows that it is not enough. Were sea after sea and pen after pen added, the words of Allah would still not run out, for the finite cannot encompass the infinite.
Then comes the decisive statement: ﴿مَّا نَفِدَتۡ كَلِمَٰتُ ٱللَّهِ﴾ (“the words of Allah would not be exhausted” · 31:27). To run out is to come to an end through use, as when provisions, water, or ink run out. What is finite runs out, but the words of Allah do not. His speech—glory be to Him—is inexhaustible. It includes His command, His revelation, and His judgment, and it points to His knowledge, wisdom, and will in a manner befitting His majesty. As al-Ṭabarī reports, Qatādah said that if the trees on land were pens and there were seven seas besides the sea, the wonders of the Lord, His wisdom, His creation, and His knowledge would not run out — Jāmiʿ al-Bayān ʿan Taʾwīl Āy al-Qurʾān — Muḥammad ibn Jarīr al-Ṭabarī.[3]
The verse then closes with two majestic names: ﴿إِنَّ ٱللَّهَ عَزِيزٌ حَكِيمٞ﴾ (“Indeed, Allah is Exalted in Might and Wise” · 31:27). Might is fitting here, for He is never powerless and His words never run out. Nothing can overcome Him, no pen can encompass Him, and no sea can exhaust His speech. Wisdom is fitting because these words are not a profusion without order or an expression of will without purpose. Rather, they are knowledge, governance, creation, revelation, and a perfectly ordered decree. Abū Ḥayyān made a similar point: the Almighty is perfect in power and the Wise is perfect in knowledge, so there is no end to what lies within His power or to what He knows — al-Baḥr al-Muḥīṭ, Muḥammad ibn Yūsuf Abū Ḥayyān.[4]
al-Taḥrīr wa-l-Tanwīr, Muḥammad al-Ṭāhir Ibn ʿĀshūr; Surah Luqmān, verse 27. https://tafasir.online/ar/browse-aya/105?sura=31&aya=27 ↩︎
al-Taḥrīr wa-l-Tanwīr, Muḥammad al-Ṭāhir Ibn ʿĀshūr; Surah Luqmān, verse 27. https://tafasir.online/ar/browse-aya/105?sura=31&aya=27 ↩︎
Jāmiʿ al-Bayān ʿan Taʾwīl Āy al-Qurʾān, Muḥammad ibn Jarīr al-Ṭabarī; Surah Luqmān, verse 27. https://tafasir.online/ar/browse-aya/14?sura=31&aya=27 ↩︎
al-Baḥr al-Muḥīṭ fī al-Tafsīr, Muḥammad ibn Yūsuf Abū Ḥayyān al-Andalusī; Surah Luqmān, verse 27. https://tafasir.online/ar/browse-aya/54?sura=31&aya=27 ↩︎
Interpretive and Reflective Outpourings
This verse deepens the meaning of the preceding verse: ﴿إِنَّ ٱللَّهَ هُوَ ٱلۡغَنِيُّ ٱلۡحَمِيدُ﴾ (“Indeed, Allah is the Free of need, the Praiseworthy” · 31:26). The mind may suppose that this sufficiency has to do only with ownership: to Allah belongs all that is in the heavens and the earth. This verse comes to say that the fullness of His words, too, is inexhaustible. Just as all creation belongs to Him, so the knowledge, will, and wisdom behind creation know no bounds. What we see of the world is only a finite trace of words that never run out.
One thing to notice in reflection is that the Qur’an chose the tools of human knowledge: pens, ink, and writing. A person thinks that once he has written something down, he has accounted for it; once he has recorded it, he has preserved it; and once he has gathered books, he possesses knowledge. The verse brings human knowledge back within its limits: if all of nature were turned into tools for writing, they could not enumerate the words of Allah. So let the mind humble itself before its Lord and know that it has been given only a little knowledge.
Sayyid Quṭb said that the verse brings the finite face to face with the infinite: the pens and seas run out, while the words of Allah go on without end — Fī Ẓilāl al-Qurʾān, Sayyid Quṭb. This is the heart of the scene: it is not only a matter of how numerous Allah’s words are, but of the contrast between the finite nature of created beings and the infinite nature of Allah’s knowledge and will.[1]
Another point for reflection is that the verse did not simply say, “Allah’s knowledge would not run out,” but said: ﴿كَلِمَٰتُ ٱللَّهِ﴾ (“the words of Allah” · 31:27). Allah’s speech is an attribute of His in a manner befitting His majesty. It does not resemble the speech of created beings, and His words include His commands, His revelation, His explanations, and His judgments. With a word Allah creates whatever He wills: ﴿كُن فَيَكُونُ﴾. With words He guides, legislates, judges, governs, and discloses as much of His knowledge as He wills. The point is that finite tools of writing cannot encompass His speech, glory be to Him. This points to the vastness of His command, His knowledge, and His wisdom.
Ibn ʿĀshūr said that the words include speech that conveys what Allah wills: what He says to His angels and other creatures, the revelation He sent down to His messengers, and what pertains to His command that brings things into being — al-Taḥrīr wa-l-Tanwīr, Muḥammad al-Ṭāhir ibn ʿĀshūr. This opens up vast horizons for understanding the verse: revelation is words, command is words, by His words He governs and judges, and the signs of the universe bear witness to Allah.[2]
On reflection, the verse calls us not to despair of learning, but to pursue it with humility. Human knowledge is noble when it knows its limits and dangerous when it becomes its own source of conceit. The Qur’an does not tell a person, “Do not write and do not learn.” Rather, it tells him, “However much you write and learn, know that you stand before a shoreless sea of Allah’s words.” All sound knowledge should make the one who gains it more reverently humble, not more arrogant.
Another point for reflection is that if the trees and the seas, both among Allah’s creations, were all put to use writing His words, they would perish, but His words would not. This brings everything back to its own neediness: the trees are needy, the sea is needy, the pen is needy, the writer is needy, and created knowledge is needy. Allah alone is mighty and wise; His words never run out, and His wisdom has no limit.
Spiritual Outpourings
This verse shakes the heart gently and powerfully at the same time. It does not directly frighten it with punishment or directly promise it Paradise. Instead, it sets the heart before a majesty no imagination can encompass. Every tree on earth is a pen, the whole sea is ink, and seven more seas are there to replenish it, and still the words of Allah do not run out. Before this scene, the heart bows of its own accord, for the greatness it glimpses is beyond all expression.
When a believer reads this verse, he no longer sees the trees as he once saw them or contemplates the seas as he once contemplated them. A tree is not merely shade and fruit, and the sea is not merely water and waves. If the imagination were to make them both tools for writing, neither could enumerate the words of Allah. How, then, can a servant disobey a Lord whose words are such? How can his heart chafe at any of His rulings? And how can he think Allah is unaware of his affairs, when His knowledge never runs out and His wisdom never ends?
There is also great hope in His words: ﴿مَّا نَفِدَتۡ كَلِمَٰتُ ٱللَّهِ﴾ (“the words of Allah would not be exhausted” · 31:27). If Allah’s words never run out, then His mercy is never too narrow for those who repent, His wisdom is never at a loss for ways out, and His gentleness is not confined to a single means. A servant may think the doors have closed, but Allah’s words extend beyond those doors. He may think every means has been exhausted, but Allah’s command is inexhaustible. He may think Allah knows little of his condition, but Allah is all-knowing: not even the weight of a grain escapes Him.
One outpouring of faith is that this verse addresses the conceit of the worshiper and the scholar alike. The worshiper does not take pride in his worship, for he knows only a little of what is due to Allah. The scholar does not take pride in his knowledge, for everything people have ever written is a drop not worth mentioning beside the words of Allah. And the one who calls others to Allah does not suppose he has grasped every aspect of wisdom, for Allah opens up whatever meanings He wills in His Book and its verses to whomever He wills.
In his commentary on the meaning of the verse, Ibn Kathīr explained that if the sea were ink for Allah’s words and all the trees were pens, the water of the sea would be used up and the pens would break, while Allah’s words would endure, with nothing to bring them to an end — Tafsīr al-Qurʾān al-ʿAẓīm, Ismāʿīl ibn ʿUmar Ibn Kathīr. This wording carries the heart from the image of things perishing to the meaning of what endures: all the tools of this world perish, but the words of Allah endure.[1]
The verse closes with ﴿عَزِيزٌ حَكِيمٞ﴾ (“Exalted in Might and Wise” · 31:27) so that the heart may know that this vastness is not merely something awe-inspiring in the unseen, but is governed by might and wisdom. He is mighty, so nothing can prevent Him from creating, commanding, and judging without end. And He is wise, so none of His words comes to pass in vain. Every command has a wise purpose, everything created has its appointed measure, and every act of withholding or giving lies within knowledge that never runs out.
Tafsīr al-Qurʾān al-ʿAẓīm, Ismāʿīl ibn ʿUmar Ibn Kathīr; Surah Luqmān, verse 27. https://tafasir.online/ar/browse-aya/50?sura=31&aya=27 ↩︎
Psychological Outpourings
This verse addresses the narrowness of the mind when it confines the world to what little it knows. Much of a person’s distress comes from thinking that if he does not know the wisdom behind something, there is no wisdom; if he sees no way out, there is no way out; and if he does not understand the divine decree, meaning itself is absent. The verse comes to open a vast horizon within him: the words of Allah never run out. What you do not know is greater than what you know, and the wisdom hidden from you is greater than what has become clear to you.
Psychologically, the verse teaches intellectual humility. A person reads a book, earns a degree, or masters a discipline, and thinks he has arrived. But the sight of trees as pens and seas as ink brings him back to his true size. This does not demean the mind; it saves it from illusion. When the mind humbles itself, it learns; when it makes itself divine, it goes astray.
The verse also offers a remedy for the anxiety that comes from wanting control. A person wants to count everything, explain everything, predict everything, and control everything. But life exceeds his grasp, and the divine decree reaches beyond his calculations. This verse teaches him to use his reason without worshiping it, to make plans without thinking they account for everything, and to ask questions without making his ignorance an argument against his Lord.
How much tranquility this verse grants someone tried by a question for which they can find no complete answer. You may not know why something was delayed, why a trial befell you, why one door closed, or why another opened. But you know that Allah is mighty and wise, that His words never run out, and that His knowledge is nothing like yours. This knowledge does not erase pain, but it gives pain a horizon and keeps despair from choking the heart.
In another respect, the verse frees a person from the lure of abundant information. In an age when knowledge flows without interruption, a person may think that enough data will suffice for guidance. But Allah’s words are not mere data: they point to His knowledge and wisdom, and through them He commands, creates, and guides. Not every accumulation of knowledge is light: to be light, it must be joined to wisdom and lead to Allah.
The verse teaches the soul a sacred sense of wonder. A soul that loses its wonder grows hard and treats the world as if it were familiar and cold. This verse restores the world’s original wonder: a tree can become a pen, a sea can become ink, seven seas can stretch beyond it, and still the words of Allah lie beyond anything we can imagine. This wonder brings the heart back to reverent humility.
Pedagogical Outpourings
In education, this is one of the greatest verses for cultivating humility about what we know. The student, the researcher, the educator, and the one who calls others to Allah should all learn that human knowledge, however vast, is limited. We say this not to quench anyone’s zeal, but to guard the heart against conceit. Everything human beings write, everything libraries preserve, and everything minds record amounts to no more than a drop of the knowledge they have been permitted to attain.
In Qur’anic education, this verse teaches us how to use the imagination to plant a meaning. The Qur’an does not merely state that Allah’s knowledge never runs out. It paints a scene: the trees are pens, the sea is ink, seven more seas replenish it, and still there is no end. Teaching through an image speaks more powerfully to the heart than an abstract statement, because it brings the child and the adult, the scholar and the layperson, face to face with the meaning and lets them see it.
The verse also teaches us how to approach the Qur’an with due respect. If the words of Allah’s speech never run out, then no reader can exhaust the guidance and wisdom He placed in His Book in a single recitation, no commentator in a single exposition, and no generation in a single understanding. This does not mean that the text admits of no constraints or that every interpretation is acceptable. It means that sincere reflection finds outpourings and forms of guidance that are renewed over time, within the bounds of the language, the revealed law, and the principles of sound understanding.
Al-Māturīdī pointed to a similar meaning when he mentioned the possibility that the verse sets forth what Allah placed in the Qur’an of meanings, knowledge, and wisdom, such that if what it contains were expounded, it would be impossible to exhaust it — Taʾwīlāt Ahl al-Sunnah, Abū Manṣūr al-Māturīdī. This opens a great door for the educator: teach the learner that the Qur’an is not a text to be used up, but a wellspring of guidance that gives afresh to whoever approaches it with heart and knowledge.[1]
Part of education is to connect knowledge with might and wisdom. The purpose of acquiring knowledge is not to become more argumentative, but to become more submissive to the Almighty, the All-Wise. Whoever grows in knowledge without growing in reverent humility has missed the fruit of knowledge. And whoever reads more without growing in reverence and proper conduct before Allah has let some of the means veil the very end they serve.
The verse also teaches us to cultivate patience in people when they face what they do not know. In an age when people want an immediate answer to everything, the verse comes to say: There are words that never run out, wisdom no one can encompass, and secrets no pen can reach. So ask and learn, but do not make your inability to know everything a reason to doubt everything. The inability to grasp something fully is not evidence that it has no meaning, but evidence of the creature’s limits.
Taʾwīlāt Ahl al-Sunnah, Muḥammad ibn Muḥammad al-Māturīdī; Surah Luqmān, verse 27. https://tafasir.online/ar/browse-aya/19?sura=31&aya=27 ↩︎
Contemporary Outpourings
In the modern age, the tools for writing, storing, and documenting information have multiplied many times over, beyond anything earlier generations could have imagined: books, encyclopedias, databases, computers, networks, and research centers. Yet the verse still stands above all this. If all the tools on earth were turned into means of recording, and if the earth’s resources were multiplied, the words of Allah would not run out. Every human advance in preserving information makes the verse more tangible without taking it beyond its meaning, for the difference between the creature and the Creator is the difference between the finite and the infinite.
This verse corrects the illusion of the modern person who thinks that amassing knowledge may make Allah unnecessary. The growth of human knowledge does not erase our need; it exposes it. The more a person learns, the more questions appear. And every time he opens a door, he finds more doors behind it. If this is so in the world of created things, what then of the Creator’s words? When knowledge is severed from humility, it may turn into arrogance; when it is joined to faith, it becomes reverent humility.
In an age of artificial intelligence, when texts, images, and knowledge can be produced at tremendous speed, we should read this verse with a renewed sense of awe. Machines may process vast amounts of information, but they cannot go beyond what has been made available to them of what human beings know and what they have inferred from the regular patterns of creation. The words of Allah are not a “data store” that can be exhausted. They are His speech, which no creature can encompass, which points to His knowledge and wisdom, and which includes His commands and prohibitions.
In the natural sciences, every new discovery about the universe, life, or matter can be a small pen bearing witness to the words of Allah, not a substitute for them. The laws of nature themselves are effects of His wisdom, their regularity is among the signs of His command, and what human beings do not know about them is greater than what they know. The believer should therefore not fear sound knowledge, but should fear that knowledge might turn into arrogance and veil the one who possesses it from the Almighty, the All-Wise.
In personal life, the verse consoles anyone who finds their words too limited. Sometimes a person can find no words to explain his pain, count his blessings, or understand what has been decreed for him. Let him remember that the words of Allah never run out. There is that in Allah’s knowledge of his condition which he himself cannot say; there is that in Allah’s mercy and ordering of his affairs which his language cannot encompass; and there is that in Allah’s wisdom in his story which has not yet been written into his understanding.
The verse also teaches us that the Qur’an will remain an inexhaustible wellspring of guidance for people today. Its guidance is not confined to one generation rather than another, or to one question rather than another. As people’s questions change, they find in the words of Allah a light to guide them, not because they impose their own desires on the Qur’an, but because Allah’s speech reaches beyond their times, goes deeper than their crises, and offers surer guidance than their minds when left to themselves apart from revelation.
And so the twenty-seventh verse of Surah Luqmān immerses the heart in a scene without end: all the trees on earth are pens, the whole sea is ink, and beyond it are seven more seas. The writing goes on until the pens and seas are spent, yet the words of Allah are not spent. This verse breaks the pride of the finite mind, opens a door to reverent humility, and says to it: Learn, write, investigate, and discover, but do not forget that you stand before the Almighty, the All-Wise. From His words He created you, by His words He guided you, by His words He governs the universe, and by His words existence still stands on knowledge that never runs out, wisdom that never ceases, and authority that cannot be overcome.
﴿وَلَوۡ أَنَّمَا فِي ٱلۡأَرۡضِ مِن شَجَرَةٍ أَقۡلَٰمࣱ وَٱلۡبَحۡرُ يَمُدُّهُۥ مِنۢ بَعۡدِهِۦ سَبۡعَةُ أَبۡحُرࣲ مَّا نَفِدَتۡ كَلِمَٰتُ ٱللَّهِۚ إِنَّ ٱللَّهَ عَزِيزٌ حَكِيمࣱ﴾ (27)
And if whatever trees upon the earth were pens and the sea [was ink], replenished thereafter by seven [more] seas, the words of Allah would not be exhausted. Indeed, Allah is Exalted in Might and Wise.