ספר המדות, Improper Thoughts / Part II Improper Thoughts / Part II · כג
Sefer HaMiddot 815
כג. לְבַטֵּל הִרְהוּרֵי זְנוּת, יְצַיֵּר דְּמוּת אָבִיו. עֵצָה עַל הִרְהוּרִים, לִכְעס עַל אֵיזֶה דָּבָר, וְרֶמֶז: "רִגְזוּ וְאַל תֶּחֱטָאוּ".·. (שָׁמַעְתִּי מֵרַבֵּנוּ, זִכְרוֹנוֹ לִבְרָכָה, בְּפֵרוּשׁ, שֶׁהַכַּוָּנָה לִרְגּז וְלִכְעס עַל עַצְמוֹ. וְזֶה מְרֻמָּז בְּדִבְרֵי רַבּוֹתֵינוּ, זִכְרוֹנָם לִבְרָכָה: לְעוֹלָם יַרְגִּיז אָדָם יֵצֶר טוֹב עַל יֵצֶר הָרַע שֶׁנֶּאֱמַר; "רִגְזוּ" וְכוּ', הַיְנוּ לִרְגּז וְלִכְעס עַל עַצְמוֹ, אֲבָל חָלִילָה לִכְעס מַמָּשׁ, כִּי עֲווֹן הַכַּעַס חָמוּר מְאד כַּיָּדוּעַ). גַּם סְגֻלָּה, לְנַתֵּק מִמְּקוֹמוֹ וְלֵילֵךְ לְמָקוֹם אַחֵר, גַּם טוֹב לִקְפּץ מִמְּקוֹמוֹ.
23. To nullify promiscuous thoughts, one should imagine the image of his father.
Good advice regarding evil thoughts is to get mad about something. This is alluded to in the verse, "Rage and do not sin". [I heard from our master, of blessed memory, that the intent is to rage and get angry at oneself. This is hinted at in the words of our rabbis, of blessed memory: A person should always enrage his good inclination over his evil inclination, as it is written, "Rage ..", that is, to rage and get angry at oneself. But not to, G-d forbid, actually get angry, because the sin of anger is extremely grave, as is known.] It is also a segula (conducive) to uproot from one's place and and go to another place. It is also good to jump from one's place.
Good advice regarding evil thoughts is to get mad about something. This is alluded to in the verse, "Rage and do not sin". [I heard from our master, of blessed memory, that the intent is to rage and get angry at oneself. This is hinted at in the words of our rabbis, of blessed memory: A person should always enrage his good inclination over his evil inclination, as it is written, "Rage ..", that is, to rage and get angry at oneself. But not to, G-d forbid, actually get angry, because the sin of anger is extremely grave, as is known.] It is also a segula (conducive) to uproot from one's place and and go to another place. It is also good to jump from one's place.