In the Parable of the Rich Fool Jesus warns of the problems with greed. One of them is vain ambition or doing good works from selfish motives.