Allah called the story of Yūsuf ﷺ the "best of stories" (ahsanul qasas). He was the beloved son of Ya'qūb ﷺ, blessed with remarkable beauty and the ability to interpret dreams. His eleven brothers, consumed by jealousy, threw him into a well and sold him to merchants, who sold him as a slave in Egypt.
In Egypt, he was bought by a noble named Al-'Azīz. His wife Zulaykhā tried to seduce him, and when he refused, she had him imprisoned. In prison, he interpreted the dreams of fellow inmates. When the Pharaoh was troubled by a dream no one could interpret, Yūsuf ﷺ was brought forth and correctly interpreted it — warning of seven years of abundance followed by seven years of drought.
Impressed, the Pharaoh appointed him over Egypt's treasury. He managed the food stores through the famine brilliantly. When his brothers came to Egypt for food (not recognising him), he eventually revealed himself, forgave them all, and invited his entire family to Egypt — reuniting with his beloved father Ya'qūb ﷺ.