There is a practice:
‘Mudita’ (Empathetic joy)
“May all living beings not be parted from the good fortune they have obtained”.
All living beings are the owners of their actions, heir to their actions, born of their actions, related through their actions, and live dependent on their actions.
Whatever they do, for good or for evil, to that will they fall heir.
Reflect rather than be jealous or envious of others peoples belongings, fortunes or attainments.
Greed, aversion, delusion, jealousy and many other defilements need to be cast away for our own skillful development and benefit.