It's always important to remember that you could have all the knowledge in the world, but if your heart is hard and closed, none of the barakah will enter your life.
The Prophet ﷺ informed us that if the heart is upright, the whole body will be upright, and if the heart is corrupt, the whole body will be corrupt.
Ibrāhīm al-Khawwāṣ (raḥimahullāh) said, “Five things cure the heart: reciting the Qur’ān with tadabbur (reflection), an empty stomach, the night prayer, humbly supplicating to Allah (‘azza wa jall) before dawn, and keeping the company of the righteous.”