Ibne-Mas'ud Radiyallahu 'anhu narrates: I heard Rasullullah Sallallahu 'alaihi wasallam saying: There are only two people worthy of envy: A person whom Allah has given wealth and empowers him to spend it in righteous causes; and the other, whom Allah has given knowledge by means of which he makes sound judgements, and teaches it to others. (Bukhari: 1409)