How is the story of Joseph told in the Quran?
The story of Joseph (Yusuf) fills the whole of surah 12, which the text itself calls "the best of narratives" (12:3). As in Genesis, Joseph dreams of stars bowing to him, is thrown into the pit by his brothers, sold in Egypt, unjustly imprisoned, interprets the king's dreams and, in the end, is reconciled with his family.
It is the only major story in the Quran told from beginning to end in a single surah. It opens with the dream: "I saw in a dream eleven planets and the sun and the moon, I saw them prostrating themselves unto me" (12:4), and his father warns Joseph not to tell his brothers.
A caravan pulls him from the pit and sells him "for a low price, a number of silver coins".
In Egypt, his master's wife tries to seduce him and tears his shirt from behind as he flees (12:25). There is an episode not found in Genesis: the women of the city, invited to a banquet, are so struck by Joseph's beauty that they cut their own hands with their knives, saying he is "not other than some gracious angel" (12:31). Later tradition gave the woman the name Zulaikha.
In prison, Joseph interprets the dreams of two companions and then the king's, with the seven fat and seven lean cows.
At the end he sends his shirt to be laid on his father's face, and "he will become (again) a seer" (12:93), and the family bows before him, fulfilling the dream. Joseph ends by praying: "Make me to die muslim (unto Thee)".