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:26:21

So I fled from you when I feared you. Then my Lord granted me wisdom and prophethood and appointed me ˹as one˺ of the messengers.  

So I fled from you, as I was afraid of you. Then my Lord gave me judgement, knowledge, and made me one of the messengers.
القرآن:٢٦:٢١

فَفَرَرْتُ مِنْكُمْ لَمَّا خِفْتُكُمْ فَوَهَبَ لِي رَبِّي حُكْمًا وَجَعَلَنِي مِنَ الْمُرْسَلِينَ  

{ففررتُ منكم لما خفتكم فوهب لي ربي حكما} علما {وجعلني من المرسلين}.