General Context
Years pass in Joseph’s life, peace be upon him. The Quran passes over those he spent in al-Aziz’s household and takes us to a new stage, when he has matured and come into his full strength. He had entered Egypt as a boy, torn from his father’s side by his own brothers and cast into the depths of a well. Merchants passed him from hand to hand until he came into the household of a man who saw promise in him and urged his wife to treat him honorably. The previous verse had announced that this stay marked the beginning of the position Allah intended to establish for him and prepared the way for teaching him some of the interpretation of events. It ended with the truth that governs the entire story, ﴿وَٱللَّهُ غَالِبٌ عَلَىٰٓ أَمۡرِهِۦ وَلَٰكِنَّ أَكۡثَرَ ٱلنَّاسِ لَا يَعۡلَمُونَ﴾ “And Allah is predominant over His affair, but most of the people do not know.” (12:21). Here we see one of the fruits of that divine providence. The boy whom others wanted to banish and humiliate reaches full strength, and Allah tells us that He gave him judgment and knowledge and that the gift was bound up with Joseph’s excellence in doing good.
One of the subtleties of the narrative is that the Quran gives no account of Joseph’s years in al-Aziz’s house, what he learned there about life, or how he passed from boyhood into youth. It has already spoken of his being established and taught, and now tells us that he reached maturity and was given judgment and knowledge. There is an evident connection between the previous verse’s ﴿وَلِنُعَلِّمَهُۥ مِن تَأۡوِيلِ ٱلۡأَحَادِيثِ﴾ “that We might teach him the interpretation of events” (12:21) and the words here, ﴿ءَاتَيْنَٰهُ حُكْمٗا وَعِلْمٗا﴾ “We gave him judgment and knowledge” (12:22). The first discloses one purpose of Allah’s providence, and the second records a gift Joseph received once he reached a stage of maturity. The gift allows for an earlier beginning and further growth. Allah had already revealed something to Joseph while he was in the well, and his knowledge will appear at successive stages of the surah. The Quran chooses this point to tell us that Joseph now possessed judgment and knowledge from Allah, before showing us the trial in which their effects would become plain.
Al-Qasimi drew attention to the verse’s place in the story:
“This verse, like the one before it, is woven into the fabric of the narrative for a remarkable purpose: to tell us early of the fruits of Joseph’s patience and striving and of the wonders Allah worked in what He intended for him. He folded gifts into those ordeals and stored away mastery for him within that bondage.”
The Beauties of Interpretation (Mahasin al-Ta’wil), Muhammad Jamal al-Din ibn Muhammad Sa‘id al-Qasimi
The verse announces a part of the gift before Joseph enters his next trial. The narrative could have continued with his life inside the palace and then recounted what happened with al-Aziz’s wife. By placing the gift of judgment and knowledge first, it acquaints the reader with the discernment and insight Allah gave him before showing how he responded to her advances. Prophethood is a divine election, and the Quran expressly attributes both judgment and knowledge to Allah’s giving. Neither painful experience itself nor the mere fact of surviving it accounts for all the favor Joseph received. Yet what he suffered, and the patience and goodness he showed, belong to the circumstances in which Allah’s extraordinary care for him becomes visible.
His brothers had seen a rival to remove, those who sold him had seen merchandise they would let go for a small price, and al-Aziz had seen a boy who might be of use or whom he might take as a son. Here the Quran discloses a truth encompassing all their estimates. Joseph was Allah’s servant, whom He chose and gave judgment and knowledge. This gift far surpassed any price paid for him or any office and power he would later acquire. Outward rank may change, and people may assess a person according to their interests. The guidance, wisdom, and knowledge Allah gives are among the greatest means of preparing a person to fulfill the obligations of worship and responsibility. The verse thus records a stage in the preparation announced near the beginning of the surah, as well as Joseph’s coming of age.
The verse stands on the threshold of a severe trial. Verse 23 opens with Allah’s words ﴿وَرَٰوَدَتۡهُ ٱلَّتِي هُوَ فِي بَيۡتِهَا عَن نَّفۡسِهِۦ﴾ “And she, in whose house he was, sought to seduce him” (12:23). Joseph moves from trials in which he had little outward power, including his brothers’ betrayal, the well, and the sale, to a trial of chastity and trust in the full vigor of his youth within a powerful household. This is why the gift of judgment and knowledge belongs directly before the account of the advances. Allah gave His prophet what would help him recognize the truth and hold fast to it. The effect will show in his response, ﴿مَعَاذَ ٱللَّهِ﴾ “[I seek] the refuge of Allah.” (12:23), and in his choice to keep clear of indecency, even at the cost of fresh injury. The surah thus continues in one movement from the childhood dream and the father’s glad tidings through the ordeal of the well and the beginnings of Joseph’s establishment to the maturity that precedes this trial.
Rhetorical Outpourings
The verse opens with ﴿وَلَمَّا بَلَغَ أَشُدَّهُ﴾ “And when Joseph reached maturity” (12:22). Lammā is a temporal expression with a conditional force, answered by ﴿ءَاتَيْنَٰهُ﴾ “We gave him” (12:22). The wording makes Joseph’s attainment of full strength the occasion for the divine gift. It carries the story forward with remarkable economy. Having described his arrival in Egypt and his entry into al-Aziz’s house, the Quran compresses the intervening years into his reaching full strength. Bulūgh means reaching a goal or a limit. Ashudd comes from a root denoting strength and vigor, and refers to the fullness of youthful power and maturity. The philologists differed about its singular. Sibawayh held that it was shidda, al-Kisa’i that it was shadd, and Abu ‘Ubayda that it had no attested singular of the same form. The difference in morphology leaves the sense intact. Joseph had reached a degree of maturity and strength appropriate to what Allah tells us He gave him at that time.
Commentators proposed a variety of ages for the attainment of full strength: puberty, eighteen, twenty, twenty-five, thirty, thirty-three, or forty. Some treated it as a stage spanning several years, since people reach their full powers at different ages. Al-Tabari canvassed the views and held that one should withhold judgment when the evidence fixes no age:
“Abu Ja‘far said: The soundest view is that Allah has told us He gave Joseph judgment and knowledge when he reached full strength. Full strength is the culmination of his strength and youth. Allah may have given him these gifts when he was eighteen, or twenty, or thirty-three. Neither the Book of Allah, nor anything transmitted from the Messenger, may Allah bless him and grant him peace, nor the consensus of the community indicates which of these it was.”
A Comprehensive Exposition of the Interpretation of the Verses of the Quran (Jami‘ al-Bayan ‘an Ta’wil Ay al-Qur’an), Muhammad ibn Jarir al-Tabari
This is an example of the distinction between understanding a word and fixing a detail the text leaves unspecified. The language and context make the meaning of ashudd clear, but Joseph’s age when Allah gave him judgment and knowledge remains uncertain. There is no warrant to make thirty-three, or any of the other proposed ages, a Quranic fact on which to base a chronology of his life in Egypt. Some early writers drew on medical and philosophical divisions of the lifespan and associated the fullness of a person’s powers with certain years. These divisions reflect the conceptions of their time and offer no proof of the verse’s meaning. The Quranic wording brings out the maturity at which the gift came, leaving Joseph’s exact age and any general medical account of growth outside its scope.
In ﴿ءَاتَيْنَٰهُ﴾ “We gave him” (12:22), Allah speaks in the majestic plural, bringing the source of judgment and knowledge to the fore as a divine gift. The Quran often uses the verb ātā for what Allah chooses to give His servants, including knowledge, wisdom, scripture, prophethood, and kingship. Its use here emphasizes that Joseph’s gift was more than the ordinary result of time passing. Full strength describes the stage of his life. The bestowal of judgment and knowledge is a favor whose source and exceptional worth the text makes clear. Learning, experience, and human means still play their part in gaining knowledge. The favor disclosed in revelation cannot be reduced to Joseph’s social circumstances or experience.
The phrase ﴿حُكۡمٗا وَعِلۡمٗا﴾ “judgment and knowledge” (12:22) consists of two indefinite nouns in a context of divine favor. Their indefiniteness may convey magnitude: Allah gave him judgment and knowledge of a high order befitting what He had chosen him for. Commentators offered closely related senses of ḥukm with differing applications. They took it to mean wisdom, sound opinion and discernment between truth and falsehood, the ability to judge people justly, or prophethood. They understood knowledge as understanding of religion, knowledge of dream interpretation, or what Allah taught him of the truth of things and His revealed law. The pairing brings knowledge together with sound appraisal and action. The judgment the Quran commends is right judgment grounded in knowledge and guidance, more than the power to issue commands.
Al-Mawardi distinguished the wise person from the learned person in terms of acting on one’s knowledge:
“The difference between the wise and the learned is that the wise person acts on his knowledge, whereas the learned person may stop at knowing and do nothing with it.”
Exegetical Observations and Insights (al-Nukat wa-l-‘Uyun), ‘Ali ibn Muhammad ibn Habib al-Mawardi
The distinction draws attention to practical wisdom. A learned person can also be wise when knowledge is put to good use, while a person can know what is right and fall short of doing it. This is consistent with ḥukm’s original association with restraining and regulating, as in restraining oneself from folly or adjudicating a dispute so one party cannot oppress the other. The pairing of judgment and knowledge in Joseph’s case is suited to the integrity he will show under pressure from al-Aziz’s wife, to his good conduct in prison, and to his management of resources when he is placed in charge of the storehouses of the land.
The final clause, ﴿وَكَذَٰلِكَ نَجۡزِي ٱلۡمُحۡسِنِينَ﴾ “And thus We reward the doers of good.” (12:22), moves from a particular statement about Joseph to a general principle about the reward for doing good. The demonstrative in ﴿وَكَذَٰلِكَ﴾ “And thus” (12:22) points back to the kind of reward the verse describes. Allah rewards those who do good with favor of this kind, although Joseph’s particular gifts of prophethood and authority were unique to his calling. The imperfect verb ﴿نَجۡزِي﴾ “We reward” (12:22) expresses the continuing operation of this divine pattern in relation to those who do good. The plural active participle ﴿ٱلۡمُحۡسِنِينَ﴾ “the doers of good” (12:22) denotes people whose deeds are marked by excellence. The general wording widens the guidance the story offers. It presents the standing of a noble prophet and makes his goodness a lesson for anyone who wishes to know the way of righteous action and its reward with Allah.
Interpretive and Reflective Outpourings
One of the main questions is what judgment and knowledge mean here, and whether their bestowal announces Joseph’s prophethood at this stage or an increase in wisdom and knowledge Allah had already given him. Ibn Kathir, Ibn Ashur, al-Sa‘di, and other commentators held that judgment includes prophethood and that Allah chose Joseph for that station when he reached full strength. Others understood it as wisdom, insight, religious understanding, sound discernment, or the learning that qualifies someone to judge between people. On this reading, other evidence in the Quran establishes Joseph’s prophethood. Ibn ‘Atiyya set out the possibilities:
“His words ﴿ حكماً ﴾ ‘judgment’ (12:22) may mean wisdom and prophethood, in which case this is the higher stage of full strength. They may mean wisdom and knowledge without prophethood, which is more fitting if the encounter with the woman took place afterward. By ﴿ علماً ﴾ ‘knowledge’ (12:22) He means the interpretation of events and other knowledge. His words ﴿ حكماً ﴾ ‘judgment’ (12:22) could also mean authority in this world and judgment between people according to the truth. Prophethood, the interpretation of events, and other matters would then come within His words ﴿ وعلماً ﴾ ‘and knowledge’ (12:22).”
A Concise Critical Commentary on the Mighty Book (al-Muharrar al-Wajiz fi Tafsir al-Kitab al-ʿAziz), ‘Abd al-Haqq ibn Ghalib Ibn ‘Atiyya al-Andalusi
The difference matters because Joseph had already received revelation in the well, as Allah says, ﴿وَأَوۡحَيۡنَآ إِلَيۡهِ لَتُنَبِّئَنَّهُم بِأَمۡرِهِمۡ هَٰذَا وَهُمۡ لَا يَشۡعُرُونَ﴾ “But We inspired to him, "You will surely inform them [someday] about this affair of theirs while they do not perceive [your identity].” (12:15). Some commentators saw this as prophetic revelation, and others as extraordinary reassurance and disclosure before his commission. The gift of judgment and knowledge at full strength could therefore mark the bestowal of a great measure of learning and prophethood or an increase in earlier guidance and revelation. The verse alone gives no grounds for certainty about the date of his commission or the age at which he became a prophet. The Quran affirms that he received revelation, judgment, and knowledge, and leaves the exact sequence of all the stages of his election and charge open.
Care is also needed to distinguish judgment as wisdom and discernment from judgment as full political and judicial authority. The preceding verse told us of the beginnings of Joseph’s establishment in Egypt. He had yet to take charge of the storehouses of the land, and this verse does not say that he had assumed authority over the affairs of state. Wisdom, prophethood, or sound discernment in counsel and judgment therefore fits the stage portrayed better than the ruling authority that would appear years later. The ability to resolve disputes could well be among the qualities for which Allah was preparing him. The events at the end of the journey should still stand in their own place, rather than all being read back into the moment when Joseph reached maturity.
The words ﴿وَكَذَٰلِكَ نَجۡزِي ٱلۡمُحۡسِنِينَ﴾ “And thus We reward the doers of good.” (12:22) express an important connection between doing good and being rewarded. Joseph belonged to those who do good, in his worship and his conduct, and Allah then tells us He gave him judgment and knowledge. This connection gives no one the means to attain prophethood through a great number of righteous deeds. Nor does goodness oblige Allah to confer a station like Joseph’s on everyone who does good. Fakhr al-Din al-Razi noted the difficulty:
“This would imply that Allah gives those same stations to everyone who performs good acts of obedience like Joseph’s. That is far-fetched, for scholars agree that prophethood cannot be acquired.”
Keys to the Unseen (Mafatih al-Ghayb, also known as al-Tafsir al-Kabir), Muhammad ibn ‘Umar Fakhr al-Din al-Razi
Al-Razi is disputing the inference that prophethood is a reward earned by deeds. The Quran’s affirmation of Allah’s favor to those who do good still stands. Allah chooses whomever He wills as His messengers. No amount of spiritual discipline, striving, or obedience can of itself make a person a prophet. Doing good is among the surest ways to seek Allah’s good pleasure and the gracious reward He gives His servants. He may grant a person beneficial knowledge and wisdom, or serenity and steadfastness. He may open doors to good of which they know nothing, or reserve a reward in the Hereafter surpassing anything they received in this world. The principle is the truth of Allah’s promise to favor those who do good. The form, extent, and timing of the gift may differ.
Another lesson is that judgment and knowledge are among the noblest things a person can receive from Allah. Joseph was powerless when cast into the well and sold cheaply. Allah then gave him a place in al-Aziz’s house. When the Quran announces the particular favor He conferred, this verse names neither wealth nor office. It says ﴿ءَاتَيْنَٰهُ حُكۡمٗا وَعِلۡمٗا﴾ “We gave him judgment and knowledge” (12:22). This invites us to reconsider how we measure success. Knowledge that leads a person to the truth, and wisdom that leads them to act on it, are among the greatest means of setting individuals and communities right. Their worth is greater than the ability to accumulate wealth or climb in social rank. Wealth and authority can be put to good use when directed by knowledge and justice. Without that guidance, they can become instruments of domination and corruption.
The verse connects knowledge with doing good and holds the two together. Joseph was commanded to worship Allah and act rightly, and he was equipped for the knowledge of dream interpretation and public affairs he would show later. Quranic guidance places judgment and knowledge in the setting of excellence in worship of Allah and goodness toward His creation. It looks beyond the amount a person knows or the power to make a judgment stick. This will become plain when Joseph chooses chastity over yielding to desire, teaches his two fellow prisoners what Allah has taught him, and devises a plan to help people through years of plenty and hardship. His knowledge was a gift to be used in the service of his duties. Its effects would show in the protection of faith and life, rights and the common good.
Spiritual Outpourings
The verse discloses a truth about knowing Allah and recognizing His favor. The Quran attributes the gifts of judgment and knowledge directly to Allah in ﴿ءَاتَيْنَٰهُ﴾ “We gave him” (12:22), then links their bestowal to Joseph’s excellence in doing good. Holding gift and reward together teaches the heart to take care when it has been granted knowledge or good judgment, and to remember its dependence on its Lord’s aid. A person can take the steps required to learn and strive to act on what they know. They still need Allah’s guidance and help to decide well, and they cannot guarantee their judgment will be sound in every case. Allah singled out the prophets for such revelation, protection from error, and support as He willed. In revealed knowledge their rank is distinct. True gratitude for knowledge is to humble oneself before Allah, guard against pride, and put what one knows to uses that please Him.
Sayyid Qutb drew attention to the gift’s bearing on belief and conduct:
“He was given sound judgment about things and knowledge of how events turn out or how dreams are interpreted, or something broader still, knowledge of life and its conditions. The wording is general and encompasses much. That was the reward for his doing good, for his excellence in belief and in conduct.”
In the Shade of the Quran (Fi Zilal al-Qur’an), Sayyid Qutb Ibrahim Husayn al-Shadhili
The observation brings together two things that belong together in a believer’s life: right understanding and righteous action. A person may know many rulings, but doing good calls for acting on that knowledge sincerely for Allah. Someone with good intentions may still need knowledge to find the right way. Allah gave Joseph the judgment and knowledge suited to his calling, and the fruits of his goodness appeared in the situations he faced. This teaching offers no grounds to claim that every upright person necessarily has special access to the unseen or can interpret dreams with certainty. The knowledge Allah reserved for His prophet differs from what people acquire through study and experience.
Al-Sa‘di explained the breadth of the reward for doing good:
“﴿ وَكَذَلِكَ نَجْزِي الْمُحْسِنِينَ ﴾ ‘And thus We reward the doers of good.’ (12:22) means those who excel in worship of the Creator by devoting themselves to it earnestly and doing it sincerely, and those who do good to Allah’s servants by benefiting them and treating them well. Among the rewards We give them for doing good is beneficial knowledge.”
The Generous and Merciful One’s Facilitation of the Interpretation of the Bountiful Giver’s Words (Taysir al-Karim al-Rahman fi Tafsir Kalam al-Mannan), ‘Abd al-Rahman ibn Nasir al-Sa‘di
This explanation brings out the two complementary aspects of iḥsān, or excellence in doing good. In worship of Allah it involves sincerity, truthfulness, and uprightness. Toward His creation it involves honoring people’s rights, helping them, and refraining from harming them. Some people regard doing good as a matter of inward feeling confined to private worship. Joseph’s life shows it at work among people in different settings, from al-Aziz’s house to prison and onward to the storehouses of the land. Knowing what ought to be done is only a beginning. Excellence involves doing it when it takes patience, struggle, giving up a desire, or shouldering responsibility.
The verse carries special spiritual force because it directly precedes the woman’s advances. The judgment and knowledge Allah gave Joseph would help safeguard his conscience from yielding to what conflicted with his Lord’s command. He had come into the fullness of youth, when many impulses grow stronger and choices require greater self-command. Chastity in Joseph’s story grows out of rooted faith and Allah’s aid. It is compatible with human impulses and goes beyond a mere weakness of desire. This will become clear when Joseph seeks refuge in Allah and rejects wrongdoing. His knowledge of Allah is present in what he chooses to do, beyond anything he might say in exhortation.
Here the struggle to govern oneself comes into view without elaborate guesses about Joseph’s inner life or inventions about feelings the Quran leaves unmentioned. Allah tells us that He gave him judgment and knowledge, and will tell us that Joseph was among His chosen servants and that He turned evil and indecency away from him. This is enough to show how Allah cared for him and how true he was in his service. The commentator has no need for stories of unproven acts or intentions. Believers should count the disciplining of the self and the avoidance of what is forbidden among the greatest things they ask of Allah. Excellence shows in the response to His guidance when the choice between right and wrong arises, even in the presence of trial and desire.
The verse invites us to see that insight and understanding can themselves be among the greatest rewards Allah gives a servant. People may look for something visible, such as livelihood, an office, or the end of a pain. But they cannot measure by material appearances the worth of an understanding that helps them recognize the truth, a wisdom that restrains them from wronging others, or steadfastness in obedience at a difficult time. Joseph received judgment and knowledge and still faced the trial of the woman’s advances and of imprisonment. A divine gift may be the strength to do one’s duty within the ordeal itself, even when its causes remain.
Psychological Outpourings
The verse portrays a stage of human maturity at which the fullness of strength calls for sound judgment and self-command. Joseph had passed from boyhood into youth. He had grown beyond the child who first left his father’s house, and when he reached this new stage Allah gave him judgment and knowledge. Human physical, cognitive, and emotional capacities ordinarily develop at different rates. Over time people gain experience that helps them understand situations and distinguish among alternatives. Development takes different courses in different people and need not end at the same age. Ashudd should therefore be understood here in the sense of growing into full strength and maturity. The word gives no basis for imposing a particular medical or psychological rule on Joseph or assuming that wisdom is fulfilled on a fixed birthday.
Al-Qushayri made a particularly perceptive observation about governing oneself before governing others:
“A part of the judgment Allah gave him was the power to govern himself, so that he mastered his desire and refused what that woman was seeking from him. Whoever cannot govern himself has no authority to govern others.”
Subtle Allusions (Lata’if al-Isharat), ‘Abd al-Karim ibn Hawazin al-Qushayri
The remark locates wisdom in a person’s ability to direct their own conduct under pressure and desire as well as in their ability to assess other people’s conduct. Someone may know that a certain action is harmful or goes against their values, yet need steadfastness to refrain when the opportunity comes and the temptation grows. Self-command need not mean crushing every natural inclination or erasing human feeling. An inclination can be natural and legitimate while still requiring direction that protects rights and limits. Joseph’s judgment thus appears in his choice of what pleases Allah when the woman presses him. His action is what we can observe without assuming freedom from human impulses or constructing a psychological account of his heart.
Joseph endured wrenching changes, beginning with betrayal, separation, and sale, then went to live in surroundings quite unlike his father’s home. Varied experience may widen a person’s perspective and strengthen judgment. Hardship is no guarantee of maturity, though, and we cannot claim Joseph would never have received judgment and knowledge had he been spared injustice. The Quran attributes the gift to Allah and gives no reason to treat pain as a prerequisite for wisdom. Some painful experiences leave effects that call for treatment and care. When safety and support are absent, they may hinder growth. What happened to Joseph did not prevent the maturity and gifts Allah ordained for him, nor did it settle his future. This leaves no reason to prize injustice as a teaching method or to celebrate suffering for its own sake.
The verse also suggests that past experience need not fix a person’s view of themselves for good. To those who sold him, Joseph was merchandise they would accept little for. In al-Aziz’s house he received care and became the object of hope. Now the Quran tells us he reached full strength and was given judgment and knowledge. What someone is called in a moment of weakness or powerlessness never conveys all they may become, and a position others impose may change. This is no promise that everyone who is wronged will rise high by patience alone, since circumstances and opportunities differ. The verse invites us to see people as more than their wounds or their social position, to leave room for their abilities to grow, and to protect their rights.
Judgment and knowledge together balance understanding a situation with the ability to decide how to respond. Someone may have abundant information and still struggle to weigh benefits against harms or resist pressure in the moment. Someone decisive may lack the knowledge that would keep them from error. Such examples are illustrations of mature conduct rather than a diagnosis of Joseph’s psychology. What the verse lets us see is that knowledge and sound appraisal complement each other. Their fruits will appear in Joseph in very different settings, from refusing sin to interpreting dreams, dealing with those in need, and making decisions that affect the public.
Pedagogical Outpourings
The verse offers a principle for preparing people to take on responsibility: attend to their stages of maturity. Here the Quran links Joseph’s gift of judgment and knowledge to a stage in which his powers had grown. Children are capable of learning and attaining distinction, and Allah gave some prophets judgment at an early age. Responsibilities, however, vary in the strength, understanding, and uprightness they require. Wise upbringing protects children from burdens beyond them and lets young people learn to take responsibility when they are ready for it. It leads them gradually from protection and care to making choices and answering for them according to their ability and maturity.
It helps to distinguish the age at which certain legal or religious obligations apply from the competence a given responsibility demands. Someone can attain puberty and become accountable, yet still need learning and experience before taking charge of other people’s rights or major interests. Age alone is also insufficient to establish or rule out competence, since individuals differ in aptitude, experience, and conduct. The verse shows that strength needs the direction of judgment and knowledge. Upbringing goes beyond physical growth to developing the capacity to understand, discern, govern one’s own conduct, and honor what is entrusted to one.
Ibn al-‘Arabi considered judgment from the standpoint of acting on what one knows:
“By this Allah explained Joseph’s state from the time he came of age: He gave him knowledge and gave him the ability to act on what he knew. Allah’s report is true, His description is sound, and His words are the truth.”
Rulings of the Quran (Ahkam al-Qur’an), Muhammad ibn ‘Abd Allah Abu Bakr Ibn al-‘Arabi al-Ma‘afiri
These words identify an essential educational value. Success depends on how well learners apply what they know in actual circumstances, as well as on how much they can retain. A young person may know the duty of honesty and still need to school their conscience in telling the truth when they fear losing an advantage. They may know that aggression is forbidden and need the moral courage to refrain from taking part in a collective injustice. They may study the rules governing trust, then be tested in keeping it under pressure from a person in authority. An education in wisdom leads from knowing a rule to acting on it well. Some forms of knowledge take long practice and experience to show their full effect.
The verse opens a way to teach young people chastity as a fruit of knowing Allah and consciously disciplining the self. It goes beyond keeping apart from temptation when circumstances make that easy. Joseph reached full strength and Allah gave him judgment and knowledge. In the next verse he would face the advances of al-Aziz’s wife. This shows why young people need an inner standard of what is right before they meet situations that stir desire or bring the weight of influence and enticement to bear. Outward safeguards need to go hand in hand with teaching why one refrains from what is forbidden, how to seek Allah’s help, and how to get to safety under pressure. Teaching chastity should guide choices, safeguard limits, and protect everyone’s dignity. It gives no grounds to condemn natural instincts or make young people feel that the presence of an inclination is itself a sin.
Another lesson is that a child or young person who has suffered injustice, separation, or a wrenching change needs real opportunities to learn and grow. The injuries they endured cannot define them. Joseph reached maturity after his ordeals, and Allah tells us He gave him judgment and knowledge. Such a station was specific to Joseph, and painful experiences need have no benefit in themselves. Good care should open a future beyond treating the immediate harm. Shelter and safety are an important beginning, followed by education, the chance to develop skills, the preservation of human ties, and participation in life with dignity. The work of preventing injustice and helping a person get back on their feet after it are complementary parts of upbringing.
The words ﴿وَكَذَٰلِكَ نَجۡزِي ٱلۡمُحۡسِنِينَ﴾ “And thus We reward the doers of good.” (12:22) teach that doing good should accompany learning at every stage. Someone who learns to show superiority or to hurt others falls short of the purpose of beneficial knowledge. A learner may be highly intelligent and widely informed and still need a conscience to direct that ability toward justice. Sound curricula cultivate honesty, trustworthiness, respect for others’ rights, and responsibility as well as intellectual skills. Good character needs to be accompanied by study and experience. Doing good calls for knowledge of what helps and what harms, just as knowledge needs an ethical standard to govern its use.
The verse also bears on cultivating gratitude and humility in learners. The Quran ascribes judgment and knowledge to Allah’s giving and gives Joseph no cause to boast of them to others. People with learning should recognize it as a gift calling for thanks. Excellence in a field gives no right to look down on those who have lacked the same opportunities. Some people may have a clear advantage in one branch of learning, and others may excel in a different task, a quality of character, or a service the first cannot perform. Recognizing the diversity of abilities and opportunities helps build communities in which people put their abilities together, carry their learning without arrogance, and affirm human worth across different levels of education and success.
Contemporary Outpourings
The verse has particular relevance in an age when knowledge is widening and information is easier to obtain, while every field still needs sound judgment and good use of what is known. A person may have precise information on a matter and be unable to judge the effects of a decision on others. Someone with wide authority may understand poorly the facts on which they must rule. The verse brings these intellectual and ethical dimensions together in ﴿ءَاتَيْنَٰهُ حُكۡمٗا وَعِلۡمٗا﴾ “We gave him judgment and knowledge” (12:22) and links them to doing good. The guidance calls for respect for specialization and experience. Sound judgment needs reliable knowledge. Knowledge in turn needs integrity and discernment about what the evidence establishes, what it leaves open, what one may do, and what one ought to leave undone.
In institutions that manage public affairs, holding office and having the competence it requires are distinct. An official may have the authority to issue a decision. The decision itself calls for knowledge, justice, and a sound assessment of people’s interests and rights. Joseph’s possession of both judgment and knowledge suggests that preparation should precede appointment to major responsibilities and should include specialized experience, an ability to weigh ethical considerations, and a willingness to listen to those with knowledge. Joseph’s eventual establishment in Egypt was connected to the knowledge and trustworthiness Allah had given him. Later he says, ﴿ٱجۡعَلۡنِي عَلَىٰ خَزَآئِنِ ٱلۡأَرۡضِ إِنِّي حَفِيظٌ عَلِيمٞ﴾ “Appoint me over the storehouses of the land. Indeed, I will be a knowing guardian.” (12:55). Competence and the safeguarding of rights plainly belong together. Holding office by itself confers no religious endorsement, and administrative success alone does not prove excellence in doing good.
Rashid Rida considered how the general reward for doing good bears on human insight:
“We give them a share of judging with truth and justice, and of knowledge that decisive speech adorns and makes plain. Each person who does good thus has a share of sound judgment and beneficial knowledge in proportion to the good they do.”
Interpretation of the Wise Quran (Tafsir al-Qur’an al-Hakim, also known as Tafsir al-Manar), Muhammad Rashid ibn ‘Ali Rida
The observation invites reflection on the relation between integrity and knowledge. Honesty, fairness, and restraint of desire can help a person see the facts impartially. Greed, partisanship, or the wish to prevail can hide truths that others see. It would go too far to make this a rule that every upright person knows more than others, or that an error in a scholarly matter shows a deficiency in faith or goodness. Specialized knowledge takes study, research, and experience. A person who does good can err through lack of information or experience, and someone else may get a particular matter right. Good intentions need a sound method and a willingness to revisit a judgment when new grounds emerge.
Contemporary education needs to overcome a sharp separation between acquiring knowledge and forming ethical character. Modern tools may give learners access to vast amounts of information quickly, but access in itself tells us little about how well learners understand it or can judge between conflicting accounts. Teaching should cultivate the skills of verification, reasoning, dialogue, and attention to consequences, together with honesty, fairness, and responsibility. Such modern questions need not be part of the direct interpretation of ḥukm. Drawing out the connection between knowledge and its sound use is plainly in keeping with the verse’s pairing of judgment and knowledge and its association of both with doing good.
The verse can also help us respond to simplistic ideas of maturity. Some judge young people by age alone, assuming that a particular birthday confers full ability to make decisions or that anyone below another threshold cannot have wisdom or competence. What we know about development shows that abilities and experiences differ, and that people keep learning and maturing throughout life beyond any single cutoff. Earlier exegetical opinions on the age of full strength, or early accounts dividing the lifespan into periods of seven years, should not serve as settled scientific facts. The verse expresses a stage of strength and maturity in Joseph’s life. Its meaning does not depend on identifying an exact age or laying down a comprehensive rule of cognitive development.
There is a lesson for mental health and rebuilding life after hardship, when the application is made carefully. Joseph experienced injustice, separation, and estrangement, yet these events did not bar the maturity and knowledge Allah had ordained for him. We should avoid deciding that a person who has suffered a severe experience has lost their prospects for learning or the ability to bear responsibility. They should have the protection, support, and fair opportunities they need. Suffering is no prerequisite for wisdom, and we cannot attribute particular psychological stages to Joseph that the text does not mention. People can get back on their feet by Allah’s help and the means available to them. They may need long care, and some effects may continue to shape their lives. They deserve no blame if their experience does not lead to visible success. The aim is to protect their dignity and widen their opportunities, with no demand that they vindicate their suffering by exceptional achievement.
In public life, doing good reaches beyond personal success. Allah gave Joseph judgment and knowledge, and their effects would benefit a whole society when he took charge of resources in years of prosperity and drought. A person with learning can bring others great benefit by directing it well and carrying out their duties sincerely. Competence can also become a means of harm if it is given over to greed, prejudice, or arrogance. Developing scholarly and administrative expertise therefore entails ethical responsibility and goes beyond a means to higher rank or earnings. Any power to shape other people’s lives calls for a corresponding measure of trustworthiness and fairness. Any knowledge whose use may harm or benefit the public calls for a conscience that keeps within the bounds of what is right.
The verse also offers consolation to the Prophet, may Allah bless him and grant him peace, and to believers who endure harm for standing by the truth. Al-Tabari said in his explanation of the closing words that their apparent sense includes all who do good. He also saw a particular promise to the Messenger of Allah, may Allah bless him and grant him peace, that Allah would save him from his people’s designs and establish him in a position of strength, just as He saved Joseph and established him after his ordeal. This reflection fits the surah’s Meccan purpose and the reassurance it offers the noble Prophet. The wording embraces other believers as well. It states broadly that doing good is never lost with Allah, although its rewards differ in form, measure, and timing according to His wisdom. Prophethood and being sent as a messenger remain gifts Allah reserves for His prophets, beyond the ranks others can earn by their deeds.
By the verse’s end, a stage in Allah’s formation of Joseph’s character is complete. He has grown beyond the boy his brothers threw into the well and the child who first entered al-Aziz’s house. He has reached full strength, and Allah has given him judgment and knowledge. The account continues the course of the earlier trials and shows a fruit of developments that began with his father’s glad tidings and unfolded as Allah’s providence prevailed over human purposes. In the next verse Joseph will meet a different kind of trial, more closely concerned with desire, choice, and fidelity. The worth of judgment and knowledge in action will appear when he says ﴿مَعَاذَ ٱللَّهِ﴾ “[I seek] the refuge of Allah.” (12:23). His wisdom will later show in prison, his knowledge in interpreting dreams, his fidelity in managing the storehouses, and his mercy in dealing with his brothers when Allah gives him power over them.
This verse thus sets out a balanced measure of human dignity and maturity. Strength needs judgment to govern it, and knowledge attains its full benefit when joined with doing good. Rank used for injustice is no true favor, and an ordeal does not prevent Allah from bringing a servant whatever good He wills. Joseph’s prophethood and his divinely bestowed knowledge are distinct from the truthfulness, goodness, pursuit of knowledge, and acting on the truth in which believers can follow his example. Allah never lets doing good go to waste. Among His greatest rewards are sound discernment, beneficial knowledge, and preparation for the responsibilities that suit a person. Here the beginning meets the end. Jacob had given Joseph the good news that he would be taught the interpretation of events, and the Quran now discloses the fulfillment of an important part of that promise. Joseph will soon put the judgment and knowledge Allah gave him into practice, and his life will show that true goodness is as apparent in the power to act as in the power to refrain from what displeases Allah.
﴿وَلَمَّا بَلَغَ أَشُدَّهُ ءَاتَيْنَٰهُ حُكْمٗا وَعِلْمٗاۚ وَكَذَٰلِكَ نَجۡزِي ٱلۡمُحۡسِنِينَ﴾ (22)
And when Joseph reached maturity, We gave him judgment and knowledge. And thus We reward the doers of good.