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:51:28

And he felt from them apprehension. They said, "Fear not," and gave him good tidings of a learned boy.  

Then he conceived, he kept secret in himself, a fear of them. They said, ‘Do not be afraid!’, we are messengers from your Lord. And they gave him good tidings of ˹the birth of˺ a knowledgeable boy, one endowed with much knowledge, and this was Isaac, as mentioned in sūrat Hūd ˹Q. 11:71˺.
القرآن:٥١:٢٨

فَأَوْجَسَ مِنْهُمْ خِيفَةً ۖ قَالُوا لَا تَخَفْ ۖ وَبَشَّرُوهُ بِغُلَامٍ عَلِيمٍ  

{فأوجس} أضمر في نفسه {منهم خيفة قالوا لا تخف} إنا رسل ربك {وبشروه بغلام عليم} ذي علم كثير وهو إسحاق كما ذكر في هود.