Joseph was the son of Jacob, and through him a descendant of Isaac and Abraham. God guided him and counted him among the righteous prophets (6:84). He came to the people of Egypt "with clear revelations" (40:34). Sura 12 carries his name and tells his life from boyhood to old age as one continuous story. God calls it "the most accurate history" (12:3) and says that "in Joseph and his brothers there are lessons for the seekers" (12:7).
The Dream and the Well
As a boy, Joseph told his father he had seen "eleven planets, and the sun, and the moon" bowing down to him. Jacob warned him not to tell his brothers, "lest they plot and scheme against you." Jacob also understood the dream as good news: God had perfected His blessings on the family of Jacob, as He had for Abraham and Isaac (12:4-6). The brothers resented that their father favored Joseph and his brother. They talked of killing him or sending him away. One of them suggested throwing him into a well instead, where a caravan might pick him up (12:8-10). They talked their reluctant father into sending Joseph out with them, threw him into the well, and came home weeping with his shirt stained in fake blood. Jacob saw through the story and said, "All I can do is resort to a quiet patience" (12:11-18).
None of this was really in their hands. The footnote to 12:9 points out that while the brothers met to decide Joseph's fate, God had already decided it. While Joseph was still in the well, God told him that one day he would tell his brothers about all this (12:15).
A Servant in Egypt
A passing caravan pulled him out and sold him in Egypt "for a cheap price." The man who bought him told his wife to take good care of him, perhaps to adopt him. "We thus established Joseph on earth, and we taught him the interpretation of dreams," and when he grew up God gave him wisdom and knowledge (12:19-22).
The wife of his master tried to seduce him. He answered, "May GOD protect me. He is my Lord, who gave me a good home." The footnote explains that he phrased it so she would think he meant her husband, when he meant God (12:23). Both came close to giving in, but he saw a proof from his Lord: "We thus diverted evil and sin away from him, for he was one of our devoted servants" (12:24). His shirt, torn from the back, showed that he was innocent (12:25-29). Later she showed him to the women of the city who had gossiped about her, and she threatened him with prison. Joseph prayed, "My Lord, the prison is better than giving in to them." God answered him, but he was imprisoned anyway, "despite the clear proofs" (12:30-35).
Prison and the King's Dream
In prison Joseph used his gift to preach. Two fellow inmates asked him to interpret their dreams. Before he did, he told them he had left the religion of those who do not believe in God and followed that of Abraham, Isaac and Jacob. Then he asked them: "are several gods better, or GOD alone, the One, the Supreme?" He told them that "All ruling belongs to GOD," and that worshiping Him alone "is the perfect religion" (12:36-40).
He then interpreted the dreams: one man would serve wine to his master, and the other would be crucified. He asked the one who would be saved, "Remember me at your lord." The verse continues, "Thus, the devil caused him to forget his Lord, and, consequently, he remained in prison a few more years" (12:41-42). The footnote reads this as Joseph's own slip. Asking a man to plead with the king for him meant depending on someone other than God, and it cost him years in prison, because "only God can relieve any hardship that might befall us" (12:42). The Quran Talk blog reaches the same reading from the grammar of the verse: Joseph stays its subject throughout, and the extra years in prison make sense only if the lapse was his1.
Years later the king dreamed of seven fat cows eaten by seven thin ones. His advisors dismissed it as nonsense, and the freed prisoner finally remembered Joseph (12:43-45). Joseph explained it as seven years of plenty, then seven years of drought, then a year of relief, and told them how to store the grain (12:46-49). Summoned by the king, he refused to leave until his name was cleared. When the women were questioned, the governor's wife confessed: "I am the one who tried to seduce him, and he was the truthful one" (12:50-53). The king gave him a prominent position, and Joseph asked to be made treasurer: "We thus established Joseph on earth, ruling as he wished" (12:54-56).
The Brothers Return
During the famine his brothers came to buy food. Joseph recognized them, but they did not recognize him. He told them to bring their half-brother next time, and he quietly put their goods back in their bags (12:58-62). Jacob let the younger son go only after the brothers swore a solemn pledge, and he put his trust in God alone (12:63-67). Joseph told his brother privately who he was, then hid the king's cup in the boy's bag so he could keep him. "We thus perfected the scheme for Joseph," because under the king's law he could not have kept his brother (12:69-76).
Jacob, who had lost his sight from grieving, still told his sons, "never despair of GOD's grace" (12:84-87). When they returned, Joseph revealed himself: "I am Joseph, and here is my brother. GOD has blessed us." He forgave them at once: "There is no blame upon you today" (12:89-92). He sent his shirt to his father. Before the caravan even arrived, Jacob sensed Joseph's presence, and when the shirt was laid on his face his sight came back (12:93-96). The whole family moved to Egypt. His parents were raised on the throne and bowed before him, and Joseph said, "this is the fulfillment of my old dream" (12:99-100). The footnote marks this as the start of the Children of Israel in Egypt, whom Moses would lead out centuries later (12:93). Joseph's closing prayer gives all the credit to God: "Let me die as a submitter, and count me with the righteous" (12:101).
What the Quran Draws From His Story
The sura ends by turning the story toward its reader. Most people will not believe whatever is done, and most who believe in God still commit idol worship (12:103-106). The messengers often despair before God's victory comes to them (12:110). The final verse sums it up: "In their history, there is a lesson for those who possess intelligence. This is not fabricated Hadith." The Quran confirms the earlier scriptures and "provides the details of everything" (12:111). Joseph's life shows these lessons in action: fate is decided by God before people make their plans, patience and righteousness are never left unrewarded (12:90), and even a prophet's brief reliance on someone other than God has a cost (12:42).
Joseph's story also carries a warning about how people treat messengers. A believer among Pharaoh's people reminded the Egyptians that Joseph had brought them clear revelations, yet they doubted him. When he died, they said, "GOD will not send any other messenger after him" (40:34). The footnote to 40:34 calls this a recurring human trait. The Jews rejected the Messiah, the Christians rejected Muhammad, and most Muslims today call Muhammad the last messenger and on that basis reject God's Messenger of the Covenant (40:34). The same point was made from the pulpit: great messengers came after Joseph even though people had called him the last2.