It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: There is no envy except in two cases: one is the person whom Allah Almighty has given wealth and then granted him the ability to spend it in the right way, and the other is the person whom Allah Almighty has endowed with wisdom and understanding, so he judges by it and teaches it to the people.