ספר המדות Improper Thoughts / Part I · ג
Sefer HaMiddot 734
ג. מַחֲשָׁבוֹת טוֹבוֹת בָּאִים עַל־יְדֵי וִדּוּי, שֶׁמִּתְוַדִּים לִפְנֵי הַתַּלְמִיד־חָכָם.
3. Good thoughts come through confession that is confessed before a Torah scholar.
Sefer HaMiddot 734