What does the Quran teach from the story of Yusuf?

Verses this study page retrieves:

  • Quran 12:3

    نَحْنُ نَقُصُّ عَلَيْكَ أَحْسَنَ ٱلْقَصَصِ بِمَآ أَوْحَيْنَآ إِلَيْكَ هَـٰذَا ٱلْقُرْءَانَ وَإِن كُنتَ مِن قَبْلِهِۦ لَمِنَ ٱلْغَـٰفِلِينَ

    We relate to you, [O Muḥammad], the best of stories in what We have revealed to you of this Qur’ān although you were, before it, among the unaware.

  • Quran 12:4

    إِذْ قَالَ يُوسُفُ لِأَبِيهِ يَـٰٓأَبَتِ إِنِّى رَأَيْتُ أَحَدَ عَشَرَ كَوْكَبًا وَٱلشَّمْسَ وَٱلْقَمَرَ رَأَيْتُهُمْ لِى سَـٰجِدِينَ

    [Of these stories mention] when Joseph said to his father, 1 "O my father, indeed I have seen [in a dream] eleven stars and the sun and the moon; I saw them prostrating to me."

Translation: Saheeh International. Cited study page — retrieved verses and named tafsir only. How answers are checked.