قَالَ رَسُولُ اللهِ صَلَّي اللهُ عَلَيْهِ وَ آلِهٖ أَنَا دَارُ الْحِكْمَةِ وَ عَلِيٌّ بَابُهَا فَمَنْ أَرَادَ الْحِكْمَةَ فَلْيَأْتِ الْبَابَ.
The Messenger of Allah (peace be on him and his progeny) declared,
“I am the house of wisdom and Ali is its door. So, whoever intends (to acquire) wisdom, he must come through the door.”
References:
1. Benaa al-Maqaalah al-Fatemiyyah by Ahmed Ibn Moosa Ibn Tawoos (r.a.), p. 186 narrating from Kitaab al-Maghaazeli
2. Kashf al-Ghummah, vol. 1, p. 113 narrating from al-Baghawi in al-Sehaah with minor variation
Notes:
1) This narration with similar concept has been recorded in several books of the opponents.
2) The term al-Hikmah is a proper noun and according to Arabic grammar, it includes all forms of wisdom.
3) The only source of all knowledge and wisdom is only Ameer al-Momineen (peace be on him) and his pure progeny (peace be on them). Trying to acquire knowledge through any other source is tantamount to stealing, which in turn will lead to nothing but deviation.