“There is no (permissible) envy except in two cases: A man whom Allah has given wealth and caused him to dispose of it in a proper manner, and a man to whom Allah has given wisdom, and he acts in accordance with it and teaches it (to others).” (Using translation from Ibn Mājah 4208)
قَالَ رَسُولُ اللهِ ﷺ لَا حَسَدَ إِلَّا فِي اثْنَتَيْنِ رَجُلٌ آتَاهُ اللهُ مَالًا فَسَلَّطَهُ عَلَى هَلَكَتِهِ فِي الْحَقِّ وَآخَرُ آتَاهُ اللهُ حِكْمَةً فَهُوَ يَقْضِي بِهَا وَيُعَلِّمُهَا