“The student of Knowledge is to Clean his Heart out from every bit of Blemish, Deceit, Envy, and bad Character in order to condition himself to soak up and memorize knowledge and discover its detailed meanings and hidden treasures.
Knowledge is – as some have said – The Secret Prayer, The Worship of the Heart, and The Inner Means of Gaining Nearness to Allah.
And just as Prayer – the worship of the external limbs – is not accepted except with External Purification from Filth and Impurity,
Likewise, Knowledge – the worship of the heart – is not facilitated except if you Purify yourself from the Filth of low and Despicable Characteristics and Manners."
-Ibn Jama’ah (may Allah have Mercy on him)