In The Name of Allaah, The Most Merciful, The Bestowed of Mercy
If the [desire for pride or haughtiness] comes to him, whilst he in the path of [seeking knowledge or engaged in an affair related] to knowledge, then it is obligated on him to place his nafs under the feet [i.e. humble himself]. It is obligatory to humble this arrogant [and] haughty nafs whilst one is in the path of seeking knowledge. Allaah hates the haughty people. [Allaah (The Most High) said]:
إِنَّهُ لَا يُحِبُّ الْمُسْتَكْبِرِينَ
Truly, He [Allaah] likes not the proud.
[Surah An-Nahl’ Aayah 23]
Marhaban Yaa Taalibal Ilm’ page 219
abridged & slightly paraphrased