Sure Al-Anbiyaa

21:51

۞ وَلَقَدْ ءَاتَيْنَآ إِبْرَٰهِيمَ رُشْدَهُۥ مِن قَبْلُ وَكُنَّا بِهِۦ عَٰلِمِينَ

Wir verliehen bereits zuvor Ibrahim seine Besonnenheit; und Wir wußten über ihn Bescheid.

Tafsir 21:51

And I granted Abraham proof against his people in his childhood, and I knew him well. I gave him the proof he deserved according to My knowledge.