Surah Yusuf 12:34
فَٱسْتَجَابَ لَهُۥ رَبُّهُۥ فَصَرَفَ عَنْهُ كَيْدَهُنَّ ۚ إِنَّهُۥ هُوَ ٱلسَّمِيعُ ٱلْعَلِيمُ
So his Lord responded to him and averted from him their plan. Indeed, He is the Hearing, the Knowing.
Translation: Saheeh International
Tafsir
So his Lord answered him his supplication and He fended off their wiles from him. Truly He is the Hearer of words the Knower of deeds.
Excerpt from Tafsir al-Jalalayn, commentary on 12:34, via Quran.com. The reader has the full commentary and 9 more tafsirs.