The Prophet Muhammad (peace be upon him) said: "There are two (kinds of) people worth envying: Someone whom God has made rich and who spends his money righteously; and someone whom God has given wisdom and who acts according to it and teaches it to others."
[Al-Bukhari]