Humility leads to Wisdom:
The prophet ﺻﻠﯽ الله ﺗﻌﺎﻟﯽٰ ﻋﻠﯿﮧ ﻭﺍٓﻟﮧ ﻭﺳﻠﻢ said :
"There is not a son of Adam except that he has wisdom in his head that is in the hand of an Angel. So, if he becomes humble, it is said to the Angel: 'Raise his wisdom,' and if he becomes arrogant, it is said to the Angel: 'Throw away his wisdom.'
-Sahih Jami al Sagheer, 5675 (authenticated by Albani)