The opposite of envy is contentment.
Philippians 4:11
11 Not that I speak in respect of want: for I have learned, in whatsoever state I am, therein to be content.
A form of Stoicism prevents a state of envy. Epicurean philosophy will fail you. Paul understood the distinction because he reasoned with these two contrarian views.
Acts 17:8
8 And certain also of the Epicurean and Stoic philosophers encountered him. And some said, What would this babbler say? others, He seemeth to be a setter forth of strange gods: because he preached Jesus and the resurrection.
