Surah Yusuf 12:52
ذَٰلِكَ لِيَعْلَمَ أَنِّى لَمْ أَخُنْهُ بِٱلْغَيْبِ وَأَنَّ ٱللَّهَ لَا يَهْدِى كَيْدَ ٱلْخَآئِنِينَ
That is so he [i.e., al-ʿAzeez] will know that I did not betray him in [his] absence and that Allāh does not guide the plan of betrayers.
Translation: Saheeh International
Tafsir
‘That plea of innocence is so that he the Court officer may know I did not betray him with regard to his family in his absence bi’l-ghayb is a circumstantial qualifier and that truly God does not guide to success the guile of the treacherous; he Joseph then humbled himself before God and said
Excerpt from Tafsir al-Jalalayn, commentary on 12:52, via Quran.com. The reader has the full commentary and 9 more tafsirs.