There is no envy except in two: a person who God has given wealth and he spends it in the right way, and a person whom Allah has given wisdom (ie religious knowledge) and he gives His decisions accordingly and teaches it to the others.

Sahih al-Bukhari 1409