Let me tell you how I had envied my cousin when he had a Super Famicom (a.k.a. SNES in North America) with a stash of great games and I didn't (not even the base machine), when I was a kid. He never wronged me. In fact, we were really good buddies when we lived next to each other more than 20 years ago, but I still envied.
I guess you're a saint and the rest of us are just dirty sinners haha.
Envy, as I stated, is just an emotion. What the person does with it is where the moral and ethical sides come into play.
If it pushes me to do better in my life, I'll almost certainly mature past that emotion.
Someone else mentioned meditation and I heartily agree, mindset is how you approach the emotions.
"Anger is a great servant but a terrible Master" -- some guy in a fantasy novel