The Story of Prophet Yusuf (Joseph): Patience, Dreams & Forgiveness

The most detailed narrative in the Quran — an entire surah devoted to one of the most beautiful stories ever told.

The story of Prophet Yusuf (Joseph) is described by Allah Himself as "the best of stories" (Ahsanul Qasas). It is the only story in the Quran told from beginning to end in a single surah — Surah Yusuf (Chapter 12). From betrayal by his own brothers to imprisonment to rising as one of the most powerful men in Egypt, Yusuf's story is a masterclass in patience, trust in Allah, and the power of forgiveness.

The Dream of a Young Boy

The story begins when young Yusuf tells his father Yaqub (Jacob) about a dream he had. He saw eleven stars, the sun, and the moon all prostrating to him. Yaqub, himself a prophet, immediately recognized this as a sign of a great future for his son. But he warned Yusuf not to tell his brothers, fearing their jealousy.

"O my son, do not relate your vision to your brothers or they will contrive against you a plan. Indeed, Satan is to man a clear enemy."

— Quran 12:5

Yusuf was one of twelve sons, but he and his younger brother Binyamin held a special place in their father's heart. This favoritism, though based on Yusuf's exceptional character and spiritual gifts, planted seeds of jealousy in the older brothers.

Betrayal by His Brothers

The brothers plotted against Yusuf. They convinced their father to let them take Yusuf out to play, promising to look after him. Instead, they threw him into a deep, dark well and returned to their father with his shirt stained in false blood, claiming a wolf had devoured him.

Yaqub's grief was immense, but his response was extraordinary. He said: "Beautiful patience is my course. And Allah is the one sought for help against what you describe" (12:18). He did not curse his sons or lose faith. He turned to Allah. This teaches us that even in the deepest pain, a believer holds onto patience and trust in Allah's plan.

Meanwhile, in the darkness of the well, young Yusuf was not alone. Allah revealed to him that he would one day remind his brothers of this deed from a position they could not imagine. Even at his lowest point, Allah was preparing Yusuf for something greater.

Sold into Slavery in Egypt

A passing caravan discovered Yusuf in the well and sold him as a slave in Egypt. He was purchased by a high-ranking Egyptian official known as Al-Aziz. Despite being a slave, Allah blessed Yusuf with exceptional beauty, wisdom, and the ability to interpret dreams. Al-Aziz recognized something special in Yusuf and treated him well, telling his wife to honor his stay.

This phase of Yusuf's life teaches us that Allah's plan often takes unexpected detours. Being thrown into a well and sold into slavery seemed like the worst possible outcome. But it was the very path that would lead Yusuf to the palace of Egypt. Sometimes what looks like a disaster is actually divine redirection.

The Trial of Temptation

As Yusuf grew into a young man, the wife of Al-Aziz became infatuated with him. She attempted to seduce him, locking the doors and calling him to her. This was perhaps Yusuf's greatest test — he was young, far from family, a slave with no protection, and she was a woman of power and beauty.

Yusuf's response has echoed through centuries as one of the greatest examples of moral courage in human history. He said: "I seek refuge in Allah. Indeed, He is my Lord who has made good my residence. Indeed, wrongdoers will not succeed" (12:23). He chose his relationship with Allah over momentary desire. He ran toward the door, and she tore his shirt from behind as he fled.

Key Lesson: Yusuf did not just resist temptation — he physically fled from it. Islam teaches us that when it comes to sin, the best strategy is not to stand and fight, but to remove yourself from the situation entirely. Running from fitna (temptation) is not weakness; it is the way of the prophets.

When Al-Aziz discovered the situation, evidence proved Yusuf's innocence — his shirt was torn from the back, showing he was fleeing. Yet to protect her reputation, the wife accused Yusuf publicly. When women of the city gossiped about her, she invited them to a banquet and had Yusuf walk in. They were so stunned by his beauty that they cut their hands with knives, exclaiming: "This is not a man; this is none but a noble angel!" (12:31).

Years in Prison

Despite his proven innocence, Yusuf was imprisoned. The powerful chose to silence truth rather than face scandal. Yusuf spent years in prison — some scholars say seven to twelve years. But even in prison, Yusuf became a source of guidance. He interpreted dreams for his fellow inmates and used every opportunity to call people to Tawheed (the worship of one God).

Two prisoners asked Yusuf to interpret their dreams. Before giving the interpretation, Yusuf invited them to believe in Allah — showing us that a believer never misses an opportunity to share the message of Islam, no matter their circumstances. He interpreted correctly: one would serve wine to the king again, and the other would be executed. He asked the one who would be freed to mention him to the king, but the man forgot, and Yusuf remained in prison for several more years.

This extended imprisonment was another test. Yusuf had done everything right — he resisted sin, spoke the truth, and was patient — yet he was still in prison. But Allah's timing is not our timing. Every day in that cell was preparing Yusuf for what was to come.

The King's Dream and Yusuf's Rise

One day, the king of Egypt had a troubling dream: seven fat cows devoured by seven lean cows, and seven green ears of grain beside seven dry ones. None of his advisors could interpret it. Finally, the freed prisoner remembered Yusuf and told the king about him.

Yusuf interpreted the dream: seven years of abundant harvest would be followed by seven years of severe drought. He then provided a detailed economic plan — store grain during the years of plenty to survive the famine. The king was so impressed that he summoned Yusuf. But before leaving prison, Yusuf insisted his name be cleared first. The wife of Al-Aziz finally confessed: "Now the truth has become evident. It was I who sought to seduce him, and indeed, he is of the truthful" (12:51).

Yusuf emerged from prison not just free, but vindicated. The king appointed him as treasurer of Egypt — in charge of the entire nation's economy. From a well, to slavery, to prison, to the second most powerful position in one of the greatest civilizations on earth. This is Allah's plan in action.

Reunion with His Brothers

When the famine struck, it affected the surrounding lands including Canaan where Yusuf's family lived. His brothers traveled to Egypt seeking food supplies. They appeared before Yusuf — now a powerful official — but did not recognize him. Yusuf recognized them immediately.

Over the course of multiple visits, Yusuf tested his brothers to see if they had changed. He kept his youngest brother Binyamin with him and watched how the brothers reacted — would they abandon another brother as they had abandoned him? This time, they fought to protect Binyamin. They had grown.

Finally, Yusuf revealed his identity. The brothers were stunned and ashamed, expecting punishment. Instead, Yusuf gave one of the most powerful declarations of forgiveness in all of scripture:

"No blame will there be upon you today. Allah will forgive you; and He is the most merciful of the merciful."

— Quran 12:92

The Dream Fulfilled

Yusuf sent for his parents. When they arrived in Egypt and entered his court, his parents and eleven brothers all prostrated before him — fulfilling the dream he had seen as a child. The eleven stars were his brothers. The sun and moon were his parents. What Allah promised had come true, decades later.

Yusuf raised his parents upon the throne and said: "O my father, this is the interpretation of my dream of before. My Lord has made it reality" (12:100). He then praised Allah for taking him out of prison, bringing his family from the desert, and reconciling them all — even after Shaytan had caused discord between them.

Key Lessons from the Story of Yusuf

Explore All 20 Prophet Stories

DeenScroll features detailed stories of 20 prophets with key lessons and Quran references. Learn about Adam, Ibrahim, Musa, Isa, Muhammad ﷺ and more.

Try DeenScroll Free →

The story of Prophet Yusuf is a reminder that Allah is the best of planners. What looks like failure may be the setup for your greatest success. What feels like punishment may be preparation. And through it all — through every well, every prison, every closed door — Allah is always, always there.