وَكُلاًّ نَّقُصُّ عَلَيْكَ مِنْ أَنبَاء الرُّسُلِ مَا نُثَبِّتُ بِهِ فُؤَادَكَ
وَجَاءكَ فِي هَذِهِ الْحَقُّ وَمَوْعِظَةٌ وَذِكْرَى لِلْمُؤْمِنِينَ
“And all that We relate to you (O Muhammad) of the news of the Messengers is in order that We may make strong and firm your heart thereby. And in this has come to you the truth, as well as an adminition and a reminder for the believers.” [Hood 11:120].
نَحْنُ نَقُصُّ عَلَيْكَ أَحْسَنَ ٱلْقَصَصِ بِمَآ أَوْحَيْنَآ إِلَيْكَ
هَٰذَا ٱلْقُرْءَانَ وَإِن كُنتَ مِن قَبْلِهِۦ لَمِنَ ٱلْغَٰفِلِينَ.
We do relate unto thee the most beautiful of stories, in that We reveal to thee this (portion of the) Qur’an: before this, thou too was among those who knew it not. [Yusuf 12:3]
لَقَدْ كَانَ فِى قَصَصِهِمْ عِبْرَةٌۭ لِّأُو۟لِى ٱلْأَلْبَٰبِ ۗ
مَا كَانَ حَدِيثًۭا يُفْتَرَىٰ وَلَٰكِن تَصْدِيقَ ٱلَّذِى بَيْنَ يَدَيْهِ
وَتَفْصِيلَ كُلِّ شَىْءٍۢ وَهُدًۭى وَرَحْمَةًۭ لِّقَوْمٍۢ يُؤْمِنُونَ.
There is, in their stories, instruction for men endued with understanding. It is not a tale invented, but a confirmation of what went before it,- a detailed exposition of all things, and a guide and a mercy to any such as believe. [Yusuf 12:111]
These aayaat were not revealed at the time of the Messenger of Allaah (صلى الله عليه وسلم) for the purpose of mere entertainment and amusement.
They were revealed for an important purpose, which was to strengthen the heart of the Prophet (صلى الله عليه وسلم) and likewise the hearts of the believers.