Yes — sins of the heart are taken extremely seriously in Islam, sometimes even more so than visible sins of action, because they shape everything else a person does. Arrogance is a striking example: the Prophet said, 'Whoever has an atom's weight of arrogance in his heart will not enter Paradise' (Sahih Muslim 91), placing a purely internal state alongside major outward sins in severity. Envy (hasad) is treated the same way — Allah instructs believers to seek refuge 'from the evil of an envier when he envies' (113:5), recognizing it as a real spiritual harm, not just an unpleasant feeling. Sins of the heart are often more dangerous precisely because they're invisible: no one confronts you about pride, resentment, or envy the way they might confront visible wrongdoing, so these sins can quietly govern a person's choices, relationships, and even acts of worship for years. Repentance from these inward sins requires the same honesty as any other sin — noticing them, disliking them for Allah's sake, and actively replacing them with humility, gratitude, and goodwill toward others.
Q&A · Repentance & Sin
Are sins of the heart, like arrogance and envy, treated as seriously as sins of action?
References
Sahih Muslim 91113:5
Informational, not a personal fatwa. Consult a qualified scholar for rulings on your situation.