The story of Joseph, called Yusuf in Arabic, is told both in the Book of Genesis and in the Qur'an, in Surah Yusuf. The two scriptures share the main events, and where they differ, this retelling says so.
Joseph was one of the twelve sons of Jacob, also called Ya'qub, and his father loved him dearly. Joseph had dreams in which the sun, the moon and stars bowed down to him. His older brothers grew jealous. One day, far from home, they threw him into a pit, and he was taken by travellers and sold into Egypt. The brothers brought home his shirt stained with false blood and told their father that a wild animal had killed him. Jacob grieved for many years.
In Egypt, after many trials and years of unjust imprisonment, Joseph was given wisdom to interpret dreams. He explained the king's dream about seven fat cows and seven thin cows, and warned of seven years of plenty followed by seven years of famine. The king put Joseph in charge of the storehouses of Egypt.