Charles H. Spurgeon has a wise word for us when we feel this way. First he reminds us of the words in Proverbs 23:17, 18:
"Let not your heart envy sinners, but continue in the fear of the Lord all the day. Surely there is a future, and your hope will not be cut off."
Then he comments,
"When we see the wicked prosper we are apt to envy them...This is foolish and sinful. If we knew them better, and especially if we remembered their end, we should pity them.The cure for envy lies in living under a constant sense of the divine presence, worshiping God and communing with Him all day long, however long the day may seem....The more heaven there is in our lives, the less of earth we shall covet. The fear of God casts out the envy of men.The death blow of envy is a calm consideration of the future. The wealth and glory of the ungodly are a vain show. As for the godly man, his end is peace and blessedness, and none can rob him of his joy; wherefore, let him forego envy and be filled with sweet content."