ספר המדות, Improper Thoughts / Part II Improper Thoughts / Part II · יג
Sefer HaMiddot 805
יג. כְּשֶׁאָדָם יוֹצֵא לַשּׁוּק וּמִתְיָרֵא, שֶׁלּא יָבוֹא לִידֵי הִרְהוּר עַל־יְדֵי רְאִיָּה, שֶׁיִּרְאֶה נָשִׁים יָפוֹת, יאמַר הַפָּסוּק: "הֵן אֶרְאֶלָם צָעֲקוּ" וְכוּ', וְעַל־יְדֵי זֶה יִנָּצֵל מֵרְאוֹת.
13. When a person goes out to the market and is fearful lest he come to evil thoughts from what he sees, that he might see attractive women, he should recite the verse, "Behold, their brave ones (angels) cried out … (angel of peace cried bitterly)" (Isaiah 33:7). Through this, he will be saved from seeing (t.n. See also below #18).