✦   New to Soul to Salah? Start your journey with curated paths and timeless knowledge.   Learn more →

The Story of Yusuf عليه السلام — Patience through betrayal, hardship and forgiveness

Patience Through Betrayal, Hardship and Forgiveness

Some stories begin with happiness.

Yusuf عليه السلام’s story begins with a dream.

A dream that his father understood was special.

But what followed was not an easy life.

Yusuf عليه السلام would experience jealousy from those closest to him, separation from his father, being thrown into a well, being sold into slavery, temptation, false accusation, imprisonment and years of uncertainty.

Yet through every chapter, Allah was preparing something he could not see.

His story is one of the most beautiful reminders that:

What feels like the end of your story may only be the beginning of something Allah has already planned.

And perhaps the most beautiful part is this:

Yusuf عليه السلام was given the opportunity to take revenge on those who had harmed him.

Instead, he chose forgiveness.


A Dream That Changed Everything

When Yusuf عليه السلام was young, he told his father Yaqub عليه السلام about a remarkable dream.

He said:

“O my father, indeed I have seen eleven stars and the sun and the moon; I saw them prostrating to me.”

Qur’an 12:4

His father understood that this was not an ordinary dream.

Yaqub عليه السلام told Yusuf عليه السلام not to share it with his brothers, fearing that they might plot against him.

Allah was already preparing Yusuf عليه السلام for something far greater than he could understand.

But his brothers became jealous.

They noticed the special love and care their father had for Yusuf عليه السلام and his brother.

Their jealousy grew into a dangerous plan.


When Jealousy Turns Into Betrayal

Yusuf عليه السلام’s brothers said among themselves that their father loved Yusuf and his brother more than them.

Instead of dealing with their jealousy, they allowed it to grow.

Eventually they decided to get rid of Yusuf عليه السلام.

They asked their father if they could take him out with them.

Yaqub عليه السلام was worried.

He feared that Yusuf عليه السلام might be harmed by a wolf while they were away.

But his brothers insisted.

Eventually, they took Yusuf عليه السلام with them.

And then they did something that would change the entire course of his life.

They threw him into a well.

Imagine the loneliness of that moment.

A young boy.

Separated from his father.

Surrounded by people he trusted.

And abandoned in a dark well.

Yet Yusuf عليه السلام was never abandoned by Allah.


The Well

The Qur’an does not describe Yusuf عليه السلام screaming or fighting back.

Instead, Allah tells us that He revealed to Yusuf عليه السلام that one day he would inform his brothers about what they had done while they would not recognise him.

Qur’an 12:15

The people who threw him into the well thought they were ending his future.

They had no idea that Allah was beginning a completely different chapter.

This is one of the most important lessons from Yusuf عليه السلام:

People can make plans against you, but they cannot cancel what Allah has written for you.


Sold as a Slave

A travelling group passed by the well.

One of their water drawers lowered his bucket and discovered Yusuf عليه السلام.

They took him out and eventually sold him as a commodity.

He was taken to Egypt.

The Qur’an tells us that the man who purchased him told his wife to honour his stay, perhaps that he might benefit them or they might adopt him as a son.

Qur’an 12:21

Yusuf عليه السلام had gone from being a beloved son in his father’s home to being a servant in a foreign land.

He had lost his family.

He had lost his freedom.

He had no idea what the future held.

But Allah’s plan was still unfolding.


Growing Through Hardship

Yusuf عليه السلام grew to maturity.

Allah gave him wisdom and knowledge.

Qur’an 12:22

But another test was about to come.

He would face a temptation that could have destroyed his honour and his future.

Instead, he chose Allah.


The Test of Temptation

The wife of the man Yusuf عليه السلام lived with attempted to seduce him.

She closed the doors and called him towards what was forbidden.

But Yusuf عليه السلام refused.

He said:

“I seek refuge in Allah.”

Qur’an 12:23

He recognised that Allah had given him a place of safety and that betrayal of that trust would be wrong.

When she continued to pursue him, Yusuf عليه السلام ran towards the door.

His shirt was torn from behind.

Then the situation became even more difficult.

Instead of being rewarded for doing the right thing, Yusuf عليه السلام was accused.


When Doing the Right Thing Still Hurts

This is one of the most painful parts of the story.

Yusuf عليه السلام did what was right.

He resisted temptation.

He tried to escape.

And yet he was still falsely accused.

Eventually, despite evidence of his innocence, he was imprisoned.

Think about how unfair that must have felt.

He had already lost his family.

He had already been sold.

And now he was being imprisoned for something he had not done.

Yet Yusuf عليه السلام remained connected to Allah.

Doing the right thing does not always mean life immediately becomes easy.

Sometimes you can make the right decision and still face consequences you did not deserve.

Yusuf عليه السلام teaches us to remain patient even when the world misunderstands us.


The Prison Became a Place of Da’wah

Yusuf عليه السلام did not allow prison to destroy his relationship with Allah.

Two young men entered prison with him and eventually asked him about dreams they had seen.

Before interpreting their dreams, Yusuf عليه السلام called them towards the worship of Allah.

He explained that the truth was to worship Allah alone.

Qur’an 12:37–40

This is remarkable.

Yusuf عليه السلام was imprisoned.

He was suffering.

He had every reason to focus only on himself.

But he still cared about guiding others.

His circumstances did not stop him from serving Allah.

Your situation may change, but your purpose does not have to disappear.


The Forgotten Years

Yusuf عليه السلام correctly interpreted the dream of one of his fellow prisoners and told him that he would eventually be released.

Yusuf عليه السلام asked him to mention him to the king.

But after the man was released, he forgot about Yusuf عليه السلام.

Yusuf عليه السلام remained in prison.

For years.

The Qur’an tells us that he remained there for a period of time.

Qur’an 12:42

Imagine waiting for freedom.

Knowing that someone could mention your name.

Waiting.

And then being forgotten.

This is one of the hardest parts of his story because Yusuf عليه السلام had done everything right.

Yet the door did not open immediately.


Allah Had Not Forgotten Him

Eventually, the king of Egypt had a troubling dream.

He saw seven fat cows being eaten by seven lean cows and seven green ears of grain and others dry.

The people around him could not explain it.

Then the former prisoner remembered Yusuf عليه السلام.

He finally remembered the man who had interpreted his dream years earlier.

Yusuf عليه السلام was brought to interpret the king’s dream.

He explained that Egypt would experience seven years of abundant harvest followed by seven difficult years of famine.

He also advised them to store grain during the years of abundance.

Qur’an 12:43–49

Yusuf عليه السلام’s wisdom was recognised.

The man who had once been forgotten in prison was now being called upon for his knowledge.


Yusuf عليه السلام Chose Justice Before Freedom

The king wanted Yusuf عليه السلام brought before him.

But Yusuf عليه السلام did not simply walk out of prison.

He wanted the truth about the accusation against him to be made clear first.

He wanted his innocence established.

The women who had been involved in the earlier incident were questioned.

They admitted that they knew Yusuf عليه السلام was innocent.

The wife of the man who had purchased Yusuf عليه السلام also acknowledged the truth.

Qur’an 12:50–51

Only after the truth was brought into the open did Yusuf عليه السلام leave prison.

This tells us something important:

Yusuf عليه السلام did not allow his desperation for freedom to make him abandon his principles.


From Prison to Power

Yusuf عليه السلام was eventually given authority over the storehouses of Egypt.

The boy who had once been thrown into a well was now responsible for managing the resources of an entire nation during a time of famine.

The prisoner had become a trusted leader.

The abandoned child had become someone people depended upon.

The dream his father had seen years earlier was beginning to unfold.

But Yusuf عليه السلام’s greatest test was still ahead.

His brothers were coming.


The Brothers Return

The famine affected the surrounding regions.

Yusuf عليه السلام’s brothers came to Egypt seeking food.

They entered his presence.

But they did not recognise him.

Yusuf عليه السلام recognised them.

Imagine that moment.

Years had passed.

These were the same brothers who had thrown him into the well.

They were now standing before him, needing his help.

And Yusuf عليه السلام had power over them.

He could have exposed them.

He could have punished them.

He could have reminded them of everything they had done.

But Allah’s plan was moving towards something greater.


The Family Begins to Come Together

Yusuf عليه السلام asked about their family.

Eventually, his younger brother was brought to Egypt.

Yusuf عليه السلام kept him close and revealed his identity to him.

Later, Yusuf عليه السلام’s brothers returned and were confronted with the truth.

The brother they had betrayed was alive.

And he was standing before them.

The person they had tried to remove from their lives had become the person who could save them from famine.

Allah had turned their entire plan upside down.


“I Am Yusuf”

Eventually Yusuf عليه السلام revealed himself.

He said:

“I am Yusuf, and this is my brother.”

Qur’an 12:90

His brothers were shocked.

They realised what they had done.

The same person they had betrayed now stood before them with authority.

They admitted their wrongdoing.

And then came one of the most beautiful moments in the entire story.


Forgiveness Instead of Revenge

Yusuf عليه السلام could have punished them.

Instead, he said:

“No blame will there be upon you today.”

Qur’an 12:92

Then he turned the moment toward Allah’s mercy.

He told them:

“Allah will forgive you, and He is the most merciful of the merciful.”

Qur’an 12:92

This is the beauty of Yusuf عليه السلام.

He did not allow his pain to turn him into a cruel person.

He had every reason to seek revenge.

But he chose forgiveness.

Real strength is not always found in having the power to punish someone. Sometimes it is found in having the power to forgive them.


The Family Is Reunited

Yusuf عليه السلام sent his shirt to his father.

When the shirt arrived, Yaqub عليه السلام recognised its scent and his eyesight was restored.

Eventually, the family travelled to Egypt.

Yusuf عليه السلام welcomed his parents.

And then his childhood dream was fulfilled.

His parents and brothers bowed before him.

Yusuf عليه السلام said:

“O my father, this is the explanation of my former dream.”

Qur’an 12:100

The dream that had begun the story had finally come true.

The well.

The slavery.

The false accusation.

The prison.

The years of waiting.

The famine.

The reunion.

It had all been part of a journey Yusuf عليه السلام could never have understood at the beginning.


Looking Back With Faith

At the end of his journey, Yusuf عليه السلام did not simply celebrate his success.

He recognised Allah’s hand throughout his life.

He said:

“Indeed, my Lord is subtle in what He wills.”

Qur’an 12:100

This is perhaps one of the greatest lessons of the entire story.

Allah’s plan was working even when Yusuf عليه السلام could not see it.

When he was in the well.

When he was sold.

When he was falsely accused.

When he was imprisoned.

When he was forgotten.

When he was finally brought before the king.

The plan was there.

Allah was never absent from the story.


What Can We Learn From Yusuf عليه السلام?

1. Be Patient When Life Does Not Make Sense

Yusuf عليه السلام could not have understood why one hardship followed another.

But he remained patient.

Sometimes we want immediate answers.

Why did this happen?

Why did they leave?

Why did I lose this opportunity?

Why did my dua not happen the way I wanted?

Yusuf عليه السلام teaches us that sometimes the wisdom only becomes clear much later.

Be patient with the chapter you are currently living.

You may not know what Allah is preparing.


2. Betrayal Does Not Have to Change Your Heart

Yusuf عليه السلام was betrayed by his own brothers.

Yet he did not allow their actions to make him unjust.

Someone else’s wrongdoing does not give us permission to become wrongdoers ourselves.

You can be hurt without becoming cruel.

You can be betrayed without becoming bitter.

You can forgive without pretending that what happened was acceptable.


3. Protect Your Relationship With Allah in Private

When Yusuf عليه السلام was tempted, nobody needed to know what decision he would make.

But Allah knew.

He chose Allah when nobody could have forced him to.

That is true sincerity.

The strongest acts of faith are sometimes the ones nobody else sees.


4. Doing the Right Thing Does Not Guarantee an Easy Life

Yusuf عليه السلام did the right thing and still went to prison.

This is an important reminder.

We sometimes think:

“If I do everything right, everything should immediately work out.”

But the prophets were tested more severely than anyone.

Hardship is not automatically a sign that Allah is displeased with you.

Sometimes hardship is part of a much greater journey.


5. Allah Can Turn Your Lowest Point Into Your Greatest Chapter

The well looked like the end.

Prison looked like the end.

But neither was the end.

Allah took Yusuf عليه السلام from the bottom of a well to a position of authority.

This does not mean every hardship will end with worldly success.

It means that you do not know what Allah can bring from what you are currently experiencing.


6. Do Not Let Being Forgotten Make You Lose Hope

Yusuf عليه السلام was forgotten by someone who could have helped him.

But Allah had not forgotten him.

People may forget.

People may overlook you.

People may fail to keep their promises.

But Allah does not forget.

Your value is not determined by who remembers you.


7. Forgiveness Can Be Greater Than Revenge

When Yusuf عليه السلام finally had power over his brothers, he chose forgiveness.

He could have humiliated them.

Instead, he gave them peace.

Forgiveness does not erase what happened.

It means refusing to allow someone else’s wrongdoing to control the rest of your life.


A Lesson About Allah’s Plan

Perhaps the deepest lesson from Yusuf عليه السلام is that we only see a small part of our story.

Yusuf عليه السلام saw:

The well.

Allah saw:

Egypt.

Yusuf عليه السلام saw:

Prison.

Allah saw:

Preparation.

Yusuf عليه السلام saw:

Separation from his family.

Allah saw:

A future reunion.

Yusuf عليه السلام saw:

Years of waiting.

Allah saw:

The perfect moment.

This is why faith requires trust.

We see today.

Allah knows yesterday, today and tomorrow.


When You Feel Like Your Life Is Falling Apart

Maybe you are going through something that feels unfair.

Maybe someone you trusted hurt you.

Maybe your family does not understand you.

Maybe you lost something you deeply wanted.

Maybe you have been waiting for years for something to change.

Maybe you are wondering why Allah has allowed your life to take a certain direction.

Remember Yusuf عليه السلام.

He could not see the ending while he was in the well.

He could not see it in prison.

He could not see it when he was forgotten.

But Allah was writing a story whose beauty could only be understood later.

Your current situation is not the complete picture.


Pause & Reflect

What If This Is Not the End?

Think about something in your life that currently hurts.

Now ask yourself:

What if Allah is preparing something I cannot see?

You may never know exactly why something happened.

And sometimes we may never receive an explanation in this life.

But we can still trust Allah.

Because the believer’s certainty does not come from knowing every detail of the plan.

It comes from knowing the One who made the plan.


The Dua of Yusuf عليه السلام

After everything Allah had given him, Yusuf عليه السلام turned back to Allah and said:

“My Lord, You have given me [something] of sovereignty and taught me of the interpretation of dreams. Creator of the heavens and earth, You are my protector in this world and the Hereafter. Cause me to die a Muslim and join me with the righteous.”

Qur’an 12:101

Notice where Yusuf عليه السلام’s heart was after everything he had achieved.

Not simply wealth.

Not simply authority.

Not simply success.

He asked Allah for a good ending.

He wanted to die as a Muslim and be joined with the righteous.

That is the real success.


The Story of Yusuf عليه السلام in One Sentence

What people intended as harm, Allah transformed into a journey of growth, honour, reunion and mercy.


A Message to Carry With You

If you are in your well, keep hope.

If you are in your prison, keep patience.

If you are being misunderstood, keep your character.

If you are being tested, keep turning to Allah.

If you have been betrayed, do not let bitterness take over your heart.

And if Allah eventually gives you power after hardship, remember Yusuf عليه السلام.

Choose forgiveness.

Because you never know how Allah is writing the next chapter.


The Beauty of Surah Yusuf

One of the remarkable things about Yusuf عليه السلام’s story is that Allah presents it as a complete narrative in one surah.

Allah says:

“We relate to you the best of stories…”

Qur’an 12:3

Surah Yusuf takes us through the journey of a young boy’s dream, his family’s jealousy, the well, Egypt, temptation, prison, dreams, leadership, reunion and forgiveness.

And throughout the entire story, one truth remains:

Allah’s plan is greater than what we can see.


Read the Story in the Qur’an

The complete story of Yusuf عليه السلام can be found primarily in:

Surah Yusuf — Chapter 12

Important passages include:

12:4–6 — Yusuf’s dream

12:7–18 — The brothers’ jealousy and the well

12:19–22 — Yusuf’s arrival in Egypt

12:23–35 — The temptation and false accusation

12:36–42 — Yusuf عليه السلام in prison

12:43–57 — The king’s dream and Yusuf’s rise to authority

12:58–76 — Yusuf عليه السلام and his brothers

12:77–101 — The reunion and forgiveness


Final Reflection

Yusuf عليه السلام’s story began with a dream.

Then came the well.

Then slavery.

Then temptation.

Then prison.

Then years of waiting.

Then power.

Then reunion.

And finally, forgiveness.

If you were standing beside Yusuf عليه السلام at any point along the journey, you might have thought:

“How could this possibly lead to something good?”

But Allah knew the ending from the beginning.

And that is the reminder we need to carry into our own lives.

You may not understand your story yet.

You may be living through a chapter you never would have chosen.

You may be waiting for something that seems far away.

But keep your heart connected to Allah.

Keep doing what is right.

Keep your patience.

Keep your character.

And keep your hope.

Because sometimes the chapter that hurts the most is the chapter Allah uses to prepare you for something you could never have imagined.

Trust Allah’s plan, even when you cannot see the next page.


Continue Your Journey

The Story of Yunus عليه السلام

Never losing hope in Allah’s mercy

The Story of Musa عليه السلام

Courage, faith and trusting Allah

The Story of Ibrahim عليه السلام

Faith that stands firm when tested

Explore the Qur’an

Discover the stories, guidance and reminders within Allah’s Book.