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:19:12

˹Allah˺ said, "O John, take the Scripture with determination." And We gave him judgement ˹while yet˺ a boy  

And two years after his birth, God, exalted be He, said to him: ‘O John! Hold on to the Scripture, namely, the Torah, firmly’, earnestly. And We gave him judgement, prophethood, while still a child, a three-year old;
القرآن:١٩:١٢

يَا يَحْيَىٰ خُذِ الْكِتَابَ بِقُوَّةٍ ۖ وَآتَيْنَاهُ الْحُكْمَ صَبِيًّا  

{يا يحيى خذ الكتاب} أي: التوراة {بقوة} بجد {وآتيناه الحكم} النبوة {صبيا} ابن ثلاث سنين.