Allah, the Most Holy, the Most High, did not teach anything to His Messenger but that He commanded him to teach such knowledge to Amir al-Mu’minin (a.s.) and he was his partner in Knowledge

Al-Kāfi|Volume 1|Book 4|Chapter 49