ספר המדות, Improper Thoughts / Part I Improper Thoughts / Part I · מו
Sefer HaMiddot 777
מו. הַחֶמְדָּה וְהַמַּחֲשָׁבָה רָעָה הָעוֹלָה עַל הַלֵּב פִּתְאוֹם, שֶׁאֵין בִּרְשׁוּת הָאָדָם לְהִמָּנַע מִמֶּנָּהּ, אֵין נֶעֱנָשִׁין עָלֶיהָ, אֶלָּא כַּאֲשֶׁר יְהַרְהֵר וְחוֹזֵר וּמְהַרְהֵר.
46. The coveting and evil thoughts which arise in the heart suddenly, which are not in a person's power to prevent, one is not punished for them, unless one repeatedly thinks about them.