Quran 12:87 (Partial)

And do not lose hope in the mercy of Allah, for no one loses hope in Allah’s mercyexcept those with no faith.”Quran 12:87 (partial)Surah   Yusuf (Joseph)Instruction by Ya'qub (Jacob) to his sons to find Yusuf (Joseph) & BinYamin (Benjamin)
Yusuf (Arabic: يوسف, Yūsuf; Arabic synonym of “Joseph”) is the 12th chapter (Surah) of the Quran and has 111 Ayahs (verses)
click the button above to listen to the recitation of this partial Quranic verse again
وَلَا تَا۟يْـَٔسُوا۟ 
مِن رَّوْحِ ٱللَّهِ ۖ 
إِنَّهُۥ لَا يَا۟يْـَٔسُ مِن رَّوْحِ ٱللَّهِ 
إِلَّا ٱلْقَوْمُ ٱلْكَـٰفِرُونَ
The story of Joseph in the Qurʾān is a continuous narrative. There are more than one hundred verses, and in totality they encompass many years and “present an amazing variety of sciences and characters in a tightly-knit plot, and offer a dramatic illustration of some of the fundamental themes of the Qurʾān.
اللہ کی رحمت سے مایوس نہ ہو، 
اس کی رحمت سے تو بس کافر ہی مایوس ہوا کرتے ہیں"
” The Qurʾān itself relates to the story’s importance in the third verse: “and We narrate unto you aḥsanal-qaṣaṣ (Arabic: أحسن ٱلقصص, “best (or most beautiful) of stories”).
” Most scholars believe this is referring to Joseph’s story, while others, including Ṭabari, argue it is a reference to the Qurʾān as a whole.
It asserts and documents the execution of God’s rulings despite the challenge of human intervention (“And Allah hath full power and control over His affairs; but most among mankind know it not”).
This is what the story of Yūsuf confirms categorically, for it ends with comfort and marvels, which is described in the Qurʾān