ספר המדות Improper Thoughts / Part I · מד
Sefer HaMiddot 775
מד. מִי שֶׁעָבַר עֲבֵרָה, וְאַחַר־כָּךְ מְהַרְהֵר בָּהּ לַעֲשֹוֹת עוֹד אַף־עַל־פִּי שֶׁלּא עָשָׂה, נִפְרָעִין עַל הַהִרְהוּר.
44. Someone who commits a sin and afterwards thinks about doing more, even though he doesn't do it, is punished for the thought.