Surah Al-Anbya 21:51
۞ وَلَقَدْ ءَاتَيْنَآ إِبْرَٰهِيمَ رُشْدَهُۥ مِن قَبْلُ وَكُنَّا بِهِۦ عَـٰلِمِينَ
And We had certainly given Abraham his sound judgement before, and We were of him well-Knowing
Translation: Saheeh International
Tafsir
And verily We had given Abraham his rectitude before that is his right guidance before he came of age — and We were Aware of him in that he was deserving of such guidance
Excerpt from Tafsir al-Jalalayn, commentary on 21:51, via Quran.com. The reader has the full commentary and 9 more tafsirs.