Wa alaikum assalam wa rahmatullah,
Hassad (envy/jealousy) is of two types:
A similar question was asked to Sheikh Ibn Baaz:
Question: I want to repent to Allah from the trait of envy, this evil trait. And I am trying to free myself from it as much as I am able, but satan beautifies it for me in many instances by way of jealousy. Thus I become jealous of some of my female friends or other women, and then I start to envy them. And I heard from one of my friends, she said: ‘suppress your jealousy and your envy in your heart and do not utter any of it on your tongue so that Allah will not hold you accountable for it’. Benefit me, what should I do? May Allah bless you.
Shaykh bin Baaz:
Yes, if you feel anything (of envy) then struggle with yourself and suppress what is with you (of envy), and do not do anything that opposes the legislation of Allah. And do not harm the female or male that you envy, not by statement nor by action and ask Allah to remove it from your heart and then it will not harm you.
Because if the person envies but they do not actualized it then that will not harm them, if they do not do anything; there is no harming the envied person, no removing of the blessings, and no speaking against the honor of the person, but rather it is only something suppressed inside then it will not harm them.
But let them be cautious; not to say anything that will harm the person they envy, or do anything that will harm them. Because it has been narrated in a hadeeth of the Prophet (peace and blessings are upon him), that he said, ‘Beware of envy, because verily envy eats away the good deeds like fire eats away firewood.’
Therefore envy is evil, but it begins with the one who envies. It harms the one who envies before it harms anyone else. So it is upon the believing man and woman to ask Allah for safety and security.
The believing man beseeches Allah, and likewise the believing woman beseeches Allah to remove that from her heart until no trace of that remains in her heart; and whenever you feel some envy then struggle with yourself to suppress it and to keep it just in the heart without harming the envied person, without harming them by action or statement. And with Allah help is sought.