Virtues of Knowledge which is Learnt and Taught for the sake of Allah
Allah, the Exalted, says:
"And say: `My Rubb! Increase me in knowledge.'' (20:114)
"Are those who know equal to those who know not?''' (39:9)
"Allah will exalt in degree those of you who believe, and those who have been granted knowledge.'' (58:11)
"It is only those who have knowledge among His slaves that fear Allah.'' (35:28)
1376. Mu`awiyah (May Allah be pleased with him) reported: The Messenger of Allah said, "When Allah wishes good for someone,
He bestows upon him the understanding of Deen.''
[Al-Bukhari and Muslim].
Commentary: Knowledge and understanding of Deen (religion) here stands for the understanding of the Qur'an and Hadith, religious injunctions, and knowledge of the lawful and the unlawful. This Hadith highlights the excellence of knowledge and the fact that it is a sign of Allah's Help to the person who possesses it and acts upon it.
1377. Ibn Mas`ud (May Allah be pleased with him) reported: The Prophet (PBUH) said, "Envy is permitted only in two cases: A man whom Allah gives wealth, and he disposes of it rightfully, and a man to whom Allah gives knowledge which he applies and teaches it.''
[Al-Bukhari and Muslim].
Commentary: According to Imam An-Nawawi's explanation, the word Hasad (jealousy) is used in the sense of Ghibtah i.e., envy. In Islam, jealousy is forbidden and is held unlawful. The reason being that one who is jealous wants that the person, who possesses the quality of which he is jealous, be deprived of that quality. Envy is permissible for the reason that when one seems that a person has been graced by Allah with certain gifts and qualities, he also desires to be blessed with those gifts. In the latter case, he does not grumble and grieve but eagerly prays to Allah for those gifts. `Knowledge' here stands for the knowledge of the Qur'an and Hadith because this knowledge alone is beneficial for man, and it is through this knowledge that correct judgements can be made among the people. This Hadith has an inducement for acquiring useful knowledge along with wealth to spend in the ways ordained by Allah.
(source: riyadh al-saliheen, Chapter 241, Virtues of Knowledge which is Learnt and Taught for the sake of Allah)