And We had certainly given Abraham his sound judgement before, and We were of him well-Knowing
The Saheeh International Quran Translation
وَلَقَدْ ءَاتَيْنَآ إِبْرَٰهِيمَ رُشْدَهُۥ مِن قَبْلُ وَكُنَّا بِهِۦ عَٰلِمِينَAnd We had certainly given Abraham his sound judgement before, and We were of him well-Knowing