Envy is one of the most useless thoughts/emotions there is, it serves no purpose at all.
But there's a good sentence for dealing with it, if you are envious of somebody else having something you can tell yourself: "I have something he doesn't have. I have _enough_."