Prophet Muhammad ﷺ said:
I am the city of knowledge and ‘Ali is the door. Whoever desires to enter the city should enter from the door.
Jamiʿ at-Tirmidhi, Hadith 3723; also in Al-Mustadrak ʿala al-Sahihayn, vol. 3, p. 127.