Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) said: A person cannot become a scholar as long as he envies one who is above him, considers one who is below him as insignificant, or seeks compensation for his knowledge.
Brief Explanation
(Commentary on Hadiths 287 to 297)
To feel envy (hasad) towards someone superior to oneself in religious matters in such a way that one wishes Allah Ta’ala would grant him similar knowledge or wealth so that he may spend it in the path of Allah, this is permissible, as is mentioned in the hadith: «لَا حَسَدَ إِلَّا فِي اثْنَتَيْنِ ......» [بخاري 73], [مسلم 816].