I read in an answer on this site:
Halacha doesn't recognize the existence of the Orwell's concept of Thoughtcrime
This makes sense initially because so much of Judaism is based on actions that we do or do not take. These are usually seen as far more important than our thoughts.
One place where this paradigm breaks down though is in the Ten Commandments themselves. We are told not to covet our neighbor's property or wife or servants. This seems to be the one major example of thoughtcrime in the Torah. I can also think of no other examples of thoughtcrime in rabbinic laws, although instances may exist.
Is the prohibition on coveting recognized as unique within the framework of halacha, and does anyone write why these ideas are forbidden when other bad thoughts (say daydreaming of murdering someone when it is apparent that you won't actually do it) is not specifically forbidden in the same way?