Amir al-Mu’minin Ali (a.s) is reported to have said:

O people, you must know that religion becomes complete through seeking knowledge and acting accordingly, You must know that seeking knowledge is of a stronger imperative nature for you than seeking wealth. In wealth, everyone’s share is guaranteed. A just person has already divided wealth among you. He and my sword guarantee that you receive your share. Knowledge, however, is stored with those who possess it. You are commanded to seek knowledge

from its sources (from those who possess it). You must seek knowledge.