ספר המדות Improper Thoughts / Part II · טז
Sefer HaMiddot 808
טז. כְּשֶׁמְּבַטֵּל הִרְהוּרֵי עֲבוֹדָה זָרָה, עַל־יְדֵי זֶה מוֹחֲלִין לוֹ כָּל עֲווֹנוֹתָיו.
16. When one nullifies thoughts of idol worship, through this, all of his sins are forgiven.
Sefer HaMiddot 808