ספר המדות Improper Thoughts / Part I · לא
Sefer HaMiddot 762
לא. כְּשֶׁבָּאִים לָאָדָם מַחֲשָׁבוֹת זָרוֹת, יַגְבִּיהַּ קוֹלוֹ כְּאִלּוּ הוּא בּוֹכֶה, וּבָזֶה יָסוּרוּ מִמֶּנּוּ הַמַּחֲשָׁבוֹת זָרוֹת.
31. When foreign thoughts come to a person, he should raise his voice as if he were crying, and through this, the foreign thoughts will depart from him.