Skip to content
Learn: all guides

The Prophet Yusuf story, from the well to the throne

The Prophet Yusuf story is the life of Yusuf (Joseph) son of Ya‘qub, told in one surah of the Quran: a childhood dream, a betrayal by his brothers, slavery and prison in Egypt, then power, reunion and forgiveness. Here is the story in order with verse references, and the lessons Muslims take from it.

Last updated: 7 November 2026

Who was the Prophet Yusuf?

Yusuf was a prophet of Allah, the son of the Prophet Ya‘qub (Jacob), grandson of Ishaq and great-grandson of Ibrahim. The Prophet Muhammad ﷺ called him “the noble, son of the noble, son of the noble, son of the noble” (Sahih al-Bukhari 3382), because four generations of prophets meet in him.

His whole life is told in Surah Yusuf, the twelfth surah, which the Quran calls “the best of stories” (Yusuf 12:3). Unlike most stories of the prophets, which are spread across many surahs, his is told once, from beginning to end. In the hadith of the Night Journey, the Prophet ﷺ met Yusuf in the third heaven and said he “had been given half of all beauty” (Sahih Muslim 162).

What happens in the story of Yusuf, step by step?

The story moves through about a dozen scenes: the dream, the well, the house of al-‘Aziz, the temptation, prison, the king’s dream, Yusuf’s rise to power, the famine that brings his brothers, the test with Binyamin, Ya‘qub’s grief, the revealing and the reunion. Each step below gives the verses so you can read them yourself.

1. The dream (12:4–6)

As a boy, Yusuf tells his father he saw eleven stars, the sun and the moon prostrating to him. Ya‘qub understands that Allah has chosen his son, and warns him not to tell his brothers in case they plot against him.

إِذۡ قَالَ يُوسُفُ لِأَبِيهِ يَـٰٓأَبَتِ إِنِّي رَأَيۡتُ أَحَدَ عَشَرَ كَوۡكَبٗا وَٱلشَّمۡسَ وَٱلۡقَمَرَ رَأَيۡتُهُمۡ لِي سَٰجِدِينَ ﴿٤﴾ قَالَ يَٰبُنَيَّ لَا تَقۡصُصۡ رُءۡيَاكَ عَلَىٰٓ إِخۡوَتِكَ فَيَكِيدُواْ لَكَ كَيۡدًاۖ إِنَّ ٱلشَّيۡطَٰنَ لِلۡإِنسَٰنِ عَدُوّٞ مُّبِينٞ ﴿٥﴾

“When Yusuf said to his father, ‘O my father, I saw eleven stars and the sun and the moon; I saw them prostrating to me.’ He said, ‘O my son, do not tell your dream to your brothers, or they will make a plan against you. Satan is a clear enemy to mankind.’”Yusuf 12:4–5 (meaning). Arabic: Uthmani text (Hafs)

2. The brothers and the well (12:7–18)

Jealous that their father loves Yusuf and his younger brother more, the brothers persuade Ya‘qub to let Yusuf come out with them, then throw him into the bottom of a well. Allah inspires Yusuf that one day he will tell them what they did (12:15). They return in the evening weeping, with his shirt stained in false blood, and say a wolf ate him. Ya‘qub replies: fa sabrun jamil, “so patience is most fitting” (12:18).

3. Sold into Egypt (12:19–22)

Travellers draw him out of the well and sell him for a few coins. A high official of Egypt, called al-‘Aziz in the Quran, buys him and tells his wife to treat him well. Allah gives Yusuf knowledge and wisdom as he grows up (12:22).

4. The test in the house of al-‘Aziz (12:23–29)

The official’s wife tries to seduce Yusuf behind locked doors. He says, “I seek refuge in Allah” and runs for the door; she tears his shirt from behind. A witness from her family points out that a shirt torn from the back proves Yusuf was running away (12:26–28).

5. The women of the city and prison (12:30–35)

Gossip spreads. She invites the women of the city, and when they see Yusuf they cut their hands in amazement. Yusuf prays: “My Lord, prison is dearer to me than what they invite me to” (12:33). Though he is innocent, he is put in prison.

6. The two prisoners (12:36–42)

Two young men in prison ask him to interpret their dreams. Before answering, Yusuf calls them to worship Allah alone (12:37–40). One will serve wine to the king again; the other will be executed. Yusuf asks the one who will be freed to mention him to the king, but Satan makes him forget, and Yusuf stays in prison for several years (12:42).

7. The king’s dream (12:43–49)

The king dreams of seven fat cows eaten by seven thin ones, and seven green ears of grain and seven dry. His advisers cannot explain it, and the freed prisoner finally remembers Yusuf. Yusuf explains: seven good years, then seven years of famine. Store the grain in its ears, and a year of relief will follow.

8. Cleared and put in charge (12:50–57)

When the king sends for him, Yusuf refuses to leave prison until his name is cleared. The women admit he did nothing wrong, and the official’s wife confesses (12:51). The king makes him trusted and close, and Yusuf asks to be put in charge of the storehouses of the land (12:55).

9. The brothers come for grain (12:58–68)

The famine reaches Canaan. Yusuf’s brothers come to Egypt for food; he recognises them but they do not recognise him. He gives them full measure, returns their money in their bags, and tells them to bring their younger brother, Binyamin, next time. Ya‘qub reluctantly lets him go after they swear an oath by Allah.

10. Binyamin and the king’s cup (12:69–79)

Yusuf quietly tells Binyamin, “I am your brother” (12:69). He places the king’s drinking cup in Binyamin’s bag; when it is found there, Binyamin is kept in Egypt under the brothers’ own law. The Quran says, “Thus did We plan for Yusuf” (12:76).

11. Ya‘qub’s grief and hope (12:80–87)

The eldest brother stays behind in shame. Ya‘qub, losing another son, weeps until his eyes turn white with grief, yet he says, “I only complain of my sorrow and grief to Allah” (12:86) and tells his sons never to despair of Allah’s mercy (12:87).

12. “I am Yusuf” (12:88–93)

The brothers return to Egypt humbled. Yusuf asks whether they remember what they did to Yusuf, and they realise who he is. Instead of punishing them, he forgives them at once.

قَالَ لَا تَثۡرِيبَ عَلَيۡكُمُ ٱلۡيَوۡمَۖ يَغۡفِرُ ٱللَّهُ لَكُمۡۖ وَهُوَ أَرۡحَمُ ٱلرَّـٰحِمِينَ ﴿٩٢﴾

“He said, ‘No blame upon you today. Allah will forgive you, and He is the Most Merciful of the merciful.’”Yusuf 12:92 (meaning). Arabic: Uthmani text (Hafs)

13. The reunion (12:94–101)

Yusuf sends his shirt home; when it is placed over Ya‘qub’s face, his sight returns. The whole family travels to Egypt. Yusuf raises his parents onto the throne, and his parents and eleven brothers bow to him in greeting, a form of respect allowed in their law. Yusuf says: “O my father, this is the meaning of my dream of long ago; my Lord has made it come true” (12:100). He ends with a du‘a: “Let me die as a Muslim and join me with the righteous” (12:101).

What are the lessons of the Prophet Yusuf story?

The main lessons are patience without complaint to people, holding on to chastity and honesty when no one would know, trusting that Allah’s plan works through hardship, never despairing of His mercy, and forgiving people when you have the power to punish them.

LessonWhere it appears
Beautiful patienceYa‘qub’s sabrun jamil (12:18, 12:83): patience while turning to Allah, not complaining to people.
Integrity in privateYusuf refuses sin behind closed doors and chooses prison over wrongdoing (12:23–33).
Calling to Allah everywhereEven in prison he teaches tawhid before answering a question (12:37–40).
Clearing your nameHe does not leave prison until the truth is established (12:50).
Hope“No one despairs of Allah’s mercy except the disbelieving people” (12:87).
Forgiveness“No blame upon you today” (12:92). The Prophet ﷺ is reported to have used the same words to the people of Makkah when he entered it in victory.
GratitudeAt the height of his success, Yusuf thanks Allah and asks to die as a Muslim (12:100–101).

Which details are not in the Quran?

Some popular retellings add details that come from Jewish and Christian tradition (Isra’iliyyat) rather than the Quran or authentic hadith. The Quran never names the official’s wife; the name “Zulaykha” and the story that Yusuf later married her are from these later sources, and scholars treat them with caution. When you teach the story, keep to what the verses say.

How can you study the story further?

Read Surah Yusuf with a good translation (see English translations of the Quran), then a reliable tafsir for the background to each scene. For the other prophets, see prophets in the Quran. A simpler version for young children is in stories of the prophets for kids. In our Islamic studies lessons, a teacher can go through the story with you or your child one scene at a time, and our tafseer classes cover the surah verse by verse.

Frequently asked questions

Where is the story of Prophet Yusuf in the Quran?

In Surah Yusuf, the 12th surah (111 verses). Almost all of it is about Yusuf; his name appears only twice elsewhere in the Quran (Al-An‘am 6:84 and Ghafir 40:34). See our guide to Surah Yusuf.

How many brothers did Yusuf have?

Eleven, matching the eleven stars in his dream (12:4). Ten were older half-brothers; Binyamin was his younger full brother.

How long was Yusuf in prison?

The Quran says “several years” (bid‘a sinin, 12:42). The Arabic word usually means between three and nine years; the exact length is not stated.

Who was al-‘Aziz in the story of Yusuf?

“Al-‘Aziz” is a title meaning a powerful official, the man in Egypt who bought Yusuf. Later Yusuf himself is addressed by the same title (12:78, 12:88).

Is the story of Yusuf suitable for children?

Yes, with care. Most of it is ideal for children; for the scene with the official’s wife, parents usually say simply that she asked him to do something wrong and he refused. See Quran stories for kids for more stories told simply.

Read Yusuf’s story with a teacher

Free one-to-one trial lessons in Islamic studies, in UK time.

Enrol now

Wait, before you go

Try a free trial

Leave your name and WhatsApp number. We will message you to arrange your free one-to-one lessons in UK time.

No payment details needed. See our privacy policy.