Yusuf 12:6
وَكَذَٰلِكَ يَجْتَبِيكَ رَبُّكَ وَيُعَلِّمُكَ مِن تَأْوِيلِ ٱلْأَحَادِيثِ وَيُتِمُّ نِعْمَتَهُۥ عَلَيْكَ وَعَلَىٰٓ ءَالِ يَعْقُوبَ كَمَآ أَتَمَّهَا عَلَىٰٓ أَبَوَيْكَ مِن قَبْلُ إِبْرَٰهِيمَ وَإِسْحَـٰقَ ۚ إِنَّ رَبَّكَ عَلِيمٌ حَكِيمٌ
Wakathalika yajtabeeka rabbukawayuAAallimuka min ta/weeli al-ahadeethi wayutimmuniAAmatahu AAalayka waAAala ali yaAAqooba kamaatammaha AAala abawayka min qablu ibraheemawa-ishaqa inna rabbaka AAaleemun hakeem
And thus will your Lord choose you and teach you the interpretation of narratives [i.e., events or dreams] and complete His favor upon you and upon the family of Jacob, as He completed it upon your fathers before, Abraham and Isaac. Indeed, your Lord is Knowing and Wise."
And it will be in this way that your Lord will choose you and teach you the correct interpretation of events, and will perfect His bounty upon you and upon the House of Ya‘qūb, as He has perfected it earlier upon your fore-fathers, Ibrāhīm and IsHāq. Surely, your Lord is All-Wise, All-Knowing.”