ספר המדות, Improper Thoughts / Part I Improper Thoughts / Part I · נז
Sefer HaMiddot 788
נז. כְּשֶׁיִּמְנַע עַצְמוֹ מֵעֲבֵרוֹת וִיבַקֵּשׁ כַּפָּרָה, זֶה יִגְרם שֶׁאֲפִלּוּ בַּמַּחֲשָׁבָה לא יֶחֱטָא.
57. When someone holds himself back from sins and seeks atonement, this causes that he will not even sin in thought.