Allah called it the best of all stories. Not because it ends well — but because of everything that happens before it ends. A child betrayed by his brothers, sold as a slave in a foreign land, thrown in prison for something he didn't do. And through every single chapter, one thing never changed: his connection to Allah.
- A Dream and a Father Who Understood It
- The Pit — Betrayed by His Own Brothers
- Sold into Egypt
- Growing Up in a Nobleman's House
- The Door Was Locked — and He Still Said No
- Years in Prison — Innocent and Forgotten
- The King's Dream Changes Everything
- From Prison Cell to Minister of Egypt
- The Reunion — and the Forgiveness Nobody Expected
- What This Story Is Really Saying to You
A Dream and a Father Who Understood It
Yusuf عليه السلام was a boy when it happened. He came to his father Ya'qub عليه السلام — himself a prophet — and told him about a dream. Eleven stars, and the sun, and the moon. All of them bowing down to him.
Now, most fathers would have said something vague and moved on. But Ya'qub was not most fathers. He heard this dream and understood immediately what it meant. Not with pride — with fear. Because a dream this significant, from a child this young, would attract attention from the wrong people.
And then Ya'qub said something that is easy to read past but deserves a moment. He told his son: your Lord will choose you. He will teach you the interpretation of dreams. He will complete His favour upon you, just as He completed it upon your forefathers Ibrahim and Is-haq. This was a father not just comforting his child — this was a prophet recognising another prophet in his arms.
So this is where we start. A boy with a dream. A father who believed in it. A promise from Allah that would take decades — painful, gruelling decades — to unfold. The Quran calls what follows "the best of all stories." Not because it's comfortable. Because it's true, in every way that matters.
Sometimes Allah shows you where you're going long before you have any idea how you'll get there. The dream came first. The journey — the pit, the slavery, the prison — came after. The promise was real from day one. The path was just harder than anyone imagined.
The Pit — Betrayed by His Own Brothers
The Quran is honest about what the brothers felt. They resented the love Ya'qub had for Yusuf and his brother. They said it openly — our father loves them more than us, and we are a group of capable men. This is an injustice. So they made a plan.
Kill him, some said. Others said no — throw him in a well, let a caravan pick him up. Get him out of the picture. And they went to their father with the idea dressed up as a day out. Let Yusuf come with us tomorrow, they said. He'll play, he'll enjoy himself. We'll take care of him.
Ya'qub was reluctant. He said he was afraid a wolf might get him while they were distracted. They reassured him. And so a father who had been given a divine promise about this boy — trusted his other sons with him.
What happened next, the Quran describes with devastating economy. They took him, and threw him into the bottom of the well. That's it. No long build-up. No dramatic scene. Just — they threw him in. And then they sat down and ate.
They went home that evening with a false story, his shirt stained with animal blood that they had deliberately put there. But Ya'qub looked at that shirt. The Quran doesn't explain exactly what he noticed — later scholars and commentators have suggested the shirt was intact, undamaged, which no wolf attack would leave. Whatever it was, Ya'qub said quietly:
Sabrun jameel. Beautiful patience. Ya'qub didn't know his son was alive. He thought, as far as the evidence suggested, that his beloved child might be gone. And his first response was not to collapse — it was to name the quality he intended to hold onto. And to turn to Allah.
Meanwhile, at the bottom of the well, Yusuf wasn't alone. Allah was with him — and gave him revelation right there, in the dark:
One day, Allah told him, you will be the one standing over them. And they won't even realise it's you. The pit was not the end of the story. It was barely the beginning.
The people who hurt you most deeply are sometimes the very people who — without meaning to, without realising it — set your destiny in motion. Yusuf's brothers threw him in that well out of jealousy. And that act of cruelty was the thing that started the chain of events leading to Egypt, to the palace, to the position that would save nations. Allah uses even our enemies for our elevation.
Sold into Egypt
A caravan came through. Someone was sent to draw water from the well, and the bucket came back up with a boy. The Quran says they were delighted — they hid him among their goods and took him. They brought him to Egypt, where they sold him.
Think about that. A boy who had a dream where the sun, moon and eleven stars bowed before him — sold for a handful of coins. The gap between the promise and the present moment was enormous. But that gap was exactly where Allah was working.
He was purchased by a man of high standing in Egypt — referred to in the Quran simply as Al-Aziz, which means the powerful or noble one, reflecting his senior position. He brought Yusuf home and said to his wife: honour his stay. Perhaps he will benefit us, or we will take him as a son.
Growing Up in a Nobleman's House
Yusuf grew up in that house. And Allah blessed him there — gave him sound judgement and knowledge. The Quran ties this directly to his character:
The doers of good. Muhsineen. That's the key. Yusuf was not just patient — he was excellent. He didn't wait until circumstances improved to give his best. He gave his best as a slave in a foreign country, in someone else's house, far from his father and everything he knew. And Allah rewarded that with wisdom.
There's something here that's worth sitting with. Yusuf had every reason to be bitter. Abandoned by his brothers, sold, separated from the only family he'd ever known. But bitterness would have closed the very doors Allah was about to open. His ihsan — his excellence in character and conduct — was the thing that kept him positioned for what was coming.
The Door Was Locked — and He Still Said No
The Prophet ﷺ told us in an authentic hadith that Yusuf was given half of all human beauty. (Sahih Muslim, 162). So when the Quran describes what happened next, it is describing a test designed for a man of extraordinary appearance, in a position of total powerlessness, in a situation where saying yes would have been invisible to the world.
The wife of Al-Aziz wanted him. The Quran doesn't dress it up — she closed the doors, she called to him. And this is the moment that defines Yusuf عليه السلام forever. He was young, alone, far from home, with no social protection. She was the mistress of the house — powerful, connected, impossible to publicly refuse without consequences. And every door was locked.
Two reasons. Gratitude to Al-Aziz who had sheltered him. And the certainty that wrongdoing never actually wins. Then he ran for the door. She chased him and grabbed his shirt from behind — tearing it. At the door stood her husband.
She turned the accusation in an instant — he was going to attack me. But a member of her household had the clarity to point out what the shirt made obvious: if it's torn from the front, she's telling the truth. If it's torn from behind, he was running away. The shirt was torn from behind.
Al-Aziz told Yusuf to overlook it, and told his wife to seek forgiveness. It should have ended there. But news spread among the women of the city — the wife of Al-Aziz is infatuated with her slave boy. She invited them over. Gave each a knife to peel fruit. Then brought Yusuf into the room.
They cut their hands. They didn't even feel it. They said — and the Quran records this directly — this is not a human being. This is a noble angel.
The wife of Al-Aziz now said it openly: yes, this is the one I wanted. And if he doesn't do what I say, he will be imprisoned. Yusuf's response — and this is one of the most human, most raw moments in the entire surah — was to turn to Allah and say:
He didn't just choose the hard path with clenched teeth. He admitted to Allah — if You don't help me, I'm going to struggle. This is real tawakkul. Not fake confidence. Honest need, placed in Allah's hands. And Allah responded: He averted their schemes from him. He is the All-Hearing, the All-Knowing.
He said prison is more beloved to me. Not easy — beloved. That's a different thing entirely. He wasn't numb to the difficulty. He was clear on his values. And that clarity made a hard choice feel, if not easy, then at least possible. What would it change for you to be that clear on your own non-negotiables?
Years in Prison — Innocent and Forgotten
They imprisoned him. A man who had done nothing wrong, locked up in a foreign country, with no family and no one to advocate for him. The Quran doesn't specify exactly how long — scholars have offered different estimates based on the broader narrative, but the Quran itself leaves the duration open. What the Quran does tell us is what he did with that time.
He gave dawah. Two young men came into the prison with him, and they noticed something — this man is different. They came to him and said: we see that you are of those who do good. They asked him to interpret their dreams. And before he interpreted anything, Yusuf talked to them about Allah. He named his forefathers — Ibrahim, Is-haq, Ya'qub. He described tawhid with clarity and warmth, from inside a prison cell.
He interpreted the dreams. One man would be released and return to serving the king. The other would be executed. Both came true exactly. As the one destined for release was about to leave, Yusuf asked him just one thing: mention me to the king. Tell him there is an innocent man in here.
The man forgot. The Quran says directly — Shaytan made him forget to mention it to the king. And Yusuf remained in prison for more years.
Read that again slowly. He did everything right. He refused sin, he turned to Allah, he helped people, he made the right connection at the right moment — and then nothing. The door stayed shut. The person who could have helped him forgot he existed. If this story were written by a human author trying to make a point about reward and justice, this would not be in the script. But Allah included it, because He wanted us to know: the delay is not abandonment. The silence is not neglect. And the timeline is His, not ours.
You can do everything right and still wait. Yusuf's experience was not an exception to this — it was the clearest example of it in human history. The wait after doing everything correctly is perhaps the hardest test of all. Not because Allah has forgotten you. But because He is preparing something that requires more time than you would have chosen.
The King's Dream Changes Everything
The King of Egypt had a dream that disturbed him. Seven fat cows consumed by seven thin ones. Seven green ears of grain, and seven withered. He called his advisors — they said these were jumbled dreams, they had no real knowledge of interpretation.
And that's when the cupbearer remembered. After all that time — he remembered the young man in prison who had interpreted his dream perfectly. He told the king. The king sent for Yusuf immediately.
But Yusuf didn't just walk out. When the messenger came, Yusuf sent him back with a request: go to your king and ask him about the women who cut their hands. He wanted the record cleared before he set foot outside that cell. He understood — and this shows the depth of his wisdom — that leaving under suspicion was not real freedom. He needed his innocence on the record.
The king investigated. He called the women who had been at that gathering. Their answer was clear:
And then, after years of silence, the wife of Al-Aziz herself spoke the truth. The Quran gives her the words directly:
Truth comes out. Not always immediately. Not always conveniently. But it comes out. And Yusuf then said something important — he didn't say this to boast. He said it to clarify his own position before Allah:
Even in his vindication, he gave credit to Allah. Even as his name was being cleared, he didn't take pride in his own righteousness. He said — I don't fully acquit myself, because the nafs is inclined toward wrong, and it was only Allah's mercy that kept me steady. That is the character of a prophet.
From Prison Cell to Minister of Egypt
The king called for Yusuf. He spoke with him. And immediately — the Quran says this directly — the king said: you are today established in position and trust with us. Yusuf's response was not modest deflection. He said:
He asked for the role. He named his qualifications plainly — I am a guardian, I have knowledge. Scholars have discussed this at length and reached a consistent conclusion: when you are genuinely the right person for a position and the welfare of others depends on that position being filled correctly, offering yourself is not arrogance. It is responsibility. Yusuf had the knowledge, the vision, and the moral grounding to manage Egypt's food security through a coming crisis. He knew it. He said it.
The man thrown into a well by his brothers was now overseeing the grain stores of the most powerful nation on earth. During the seven years of plenty he managed everything with precision, storing the surplus. When the famine came — exactly as the king's dream had foretold — Egypt was ready. People came from all surrounding lands to buy grain. Including, eventually, ten brothers from Canaan.
The Reunion — and the Forgiveness Nobody Expected
The brothers came to Egypt seeking food. They stood before the minister — and had no idea it was Yusuf. Decades had passed. They had left a child behind. The man in front of them had authority, composure, and the bearing of Egyptian royalty. It didn't occur to them.
But Yusuf recognised them immediately. He didn't expose himself. He asked about their family, manoeuvred carefully, required them to bring their youngest brother on the next visit. He had their payment secretly placed back in their bags — so they would have every reason to return. He was testing them. Watching whether these were still the same men who had thrown a child in a well, or whether time and life had changed them.
When they returned with their youngest brother Binyamin, Yusuf took him aside privately. The Quran tells us:
A private reunion. Years of separation, held quietly in a palace corridor. And his first words to his brother were not about himself — they were comfort. Don't grieve. I'm here.
Through a series of events the Quran describes in detail, the brothers were put in an impossible position. They were standing before this minister with no way out. And that's when — the Quran says he could no longer hold it back:
The most powerful official in Egypt. The same child they had thrown in a well. Standing in front of them. In that moment, the brothers understood everything. The shame must have been total. And what Yusuf said next is one of the most extraordinary statements in the entire Quran:
No blame upon you today. He didn't say — I forgive you, but here's a list of everything you cost me. He didn't make them beg. He didn't leverage his power. He said: no blame. And then — and this is the part that really breaks you open — he didn't just forgive them personally. He asked Allah to forgive them too.
The Shirt and the Sight
Yusuf sent his shirt back to Canaan. He told his brothers: place this on my father's face and his sight will return. The same shirt. The one that had been brought back stained with blood to break a father's heart — now the instrument of his healing. Only Allah arranges things like that.
Ya'qub, in Canaan, smelled Yusuf's scent before the caravan even arrived:
The shirt was placed on his face. His eyesight returned. The whole family came to Egypt. And there, the dream that Yusuf had seen as a child — the sun and moon and eleven stars bowing — came true in full. His parents and his brothers before him, in prostration of honour.
My Lord has made it reality. Not — I made it. Not — look what I achieved. My Lord made it real. After everything. After the well and the slavery and the false accusation and the prison and the forgetting. My Lord made it real.
What This Story Is Really Saying to You
The Prophet ﷺ said: "How wonderful is the affair of the believer, for his affairs are all good — and this is not the case for anyone except the believer. If something good happens to him, he is thankful, and that is good for him. If something bad happens to him, he bears it with patience, and that is also good for him." (Sahih Muslim, 2999)
That hadith describes Yusuf's entire life. Every chapter — the good and the devastating — was working together. And the Quran confirms this explicitly at the end of Surah Yusuf:
Allah is predominant over His affair. Not sometimes. Not when things are going well. Always. The brothers thought they were in control when they threw Yusuf in that well. The wife of Al-Aziz thought she was in control when she had him imprisoned. But Allah was predominant over every single chapter of it. And most people don't know — because most people only look at the surface of events, not at what's moving underneath them.
- Patience (sabr) is not just waiting — it is remaining excellent while you wait
- Character doesn't take a day off — Yusuf was a muhsin as a slave, as a prisoner, and as a minister
- Saying no to sin when it is genuinely costly is one of the highest acts of iman
- The nafs struggles — Yusuf admitted this honestly to Allah, and that honesty was strength
- Truth is cleared — it took years, but every false accusation against him was publicly corrected
- Forgiveness is a choice of the powerful — he had every right to punish, and he chose healing instead
- The promise of Allah is real — the dream was fulfilled to the letter, decades later
- Allah uses our enemies for our elevation — without the brothers' betrayal, Yusuf never reaches Egypt
Surah Yusuf was revealed during the Year of Grief — when the Prophet ﷺ had lost Khadijah رضي الله عنها and his uncle Abu Talib, and was facing the worst period of opposition in his mission. Allah gave him this story. Not as distraction. As medicine. As proof that the plan has always been in motion, even when — especially when — it looks like everything is falling apart.
And Yusuf's final dua, after all of it — after the well and the palace and the prison and the throne room and the reunion — was not for more of what the world calls success. It was simply this:
He had the highest position in Egypt. He had his father back. His brothers. His sight restored to his family. And what he asked for — what all of it pointed toward — was: let me end as a Muslim. Let me die in a state of submission to You. That's where the story was always going. Not to the palace. To Allah.
If you are in a pit right now — whether that's a real situation or just how life feels — this story is for you. Not as a promise that it will be quick. But as proof that it will be complete. Allah does not start a story He does not finish. And He finishes them well.
Test Your Knowledge of the Prophets
Try our free Prophet Stories Quiz — questions on Yusuf AS, Musa AS, Ibrahim AS and more.
NoorWay Editorial Team
NoorWay is a free Islamic resource for Muslims in the UK and beyond. Our Prophet Stories series draws directly from the Quran and authentic hadith, and where we include narrations from earlier traditions, we say so clearly. No ads. No subscriptions. Just sincerity.
Musa AS — Prophet, Fugitive, and the One Whom Allah Spoke To
Ibrahim AS — The Friend of Allah and the Father of Prophets
Nuh AS — 950 Years of Patience and the Ark That Saved Mankind
More Prophet Stories in Your Inbox
New deep-dive articles on the Prophets, Islamic history, and spiritual guidance — delivered free, every week.