Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:21:51

And We had certainly given Abraham his sound judgement before, and We were of him well-Knowing  

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˺,
القرآن:٢١:٥١

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

{ولقد آتينا إبراهيم رشده من قبل} أي هداه قبل بلوغه {وكنا به عالمين} بأنه أهل لذلك.