Jealousy is in actual fact expressing a persons anger to Allah Ta’ala.
It is as if you are objecting to Allah Ta’ala.
Why did Allah Ta’ala bless so and so with this favour whereas I was more worthy of it? The cure for this is to take gifts to the person u jealous of.
Greet him, invite him over to your home and make dua for him. In this way, insha Allah jealousy will come to an end.
Whenever u see someone with someting that u desire, think for a moment that whatever he has and whateva everyone else has was given to thenm by Allah Ta’ala.
(Mufti Mahmoodul Hasan Gangohi Rahmatullah Alayh)