All Qur'anic characters

The prophets عليهم السلام

was betrayed, tested, imprisoned, and eventually entrusted with authority. Through these changes, he remained devoted to Allah and forgave those who had wronged him.

The story

From a family plot to Egypt

told his father about a dream involving heavenly bodies bowing before him. His brothers later plotted against him out of jealousy and placed him in a well. Travelers found him, and he was sold in Egypt. The household that bought him gave him a place to live, while Allah was preparing him for responsibilities his brothers could not foresee.

Integrity under pressure

The woman in whose house lived tried to draw him into wrongdoing. He refused and sought Allah's protection. Despite evidence supporting his innocence, he was imprisoned. There he taught fellow prisoners about worshipping Allah alone and interpreted their dreams. When the king later needed a dream explained, his answer opened the way to investigation, public vindication, and a position of responsibility.

Authority used with mercy

During the years of shortage, the brothers of came to Egypt for provisions without recognizing him. After a series of meetings, he revealed who he was and forgave them instead of taking revenge. He sent for his family, and the earlier dream was fulfilled. At the reunion, he credited Allah with kindness and asked to remain faithful until death.

What we learn

Choose obedience when it is costly

preferred the hardship of prison to agreeing to wrongdoing. His example does not make injustice acceptable; it shows that another person's pressure does not turn disobedience into the right choice. He asked Allah for help rather than trusting his own strength against temptation.

Let success deepen gratitude

When gained authority and saw his family reunited, he attributed the outcome to Allah's kindness. He also forgave his brothers when he had power over them. His example teaches that relief should lead to gratitude and mercy rather than pride or revenge.

The takeaway

Protect your integrity in hardship, use responsibility well, and let Allah's kindness to you become a reason for gratitude and forgiveness.

Sources

Summaries of Ibn Kathīr's commentary on the linked āyāt, with authentic ḥadīth noted in the text where used. Verse links open Quran.com text and your chosen translation.