סימן קנא סעיף ו
הָרוֹצֶה לִשְׁמֹר אֶת עַצְמוֹ מֵחֵטְא זֶה, יִשְׁמֹר אֶת פִּיו מִנִּבּוּל פֶּה, מִשְּׁקָרִים, מֵרְכִילוּת וּמִלָּשׁוֹן הָרַע וּמִלֵּצָנוּת. וְכֵן יִשְׁמֹר אֶת אָזְנוֹ מִשְּׁמֹעַ דְּבָרִים כָּאֵלּוּ. גַּם יְהֵא זָהִיר לְקַיֵם נְדָרָיו, וְלֹא יַרְבֶּה בִּדְאָגָה, וְגַם יְהֵא זָהִיר מֵהִרְהוּרִים רָעִים. וְקֹדֶם שֶׁהוֹלֵךְ לִישֹׁן, יעֲסֹק בַּתּוֹרָה, אוֹ יֹאמַר אַרְבָּעָה מִזְמוֹרֵי תְהִלִּים הָרִאשׁוֹנִים (עַיֵן לְעֵיל סִימָן קלב סָעִיף ה), וְיִזָּהֵר שֶלֹּא לִישֹׁן בַּחֶדֶר יְחִידִי.
If you wish to avoid this sin, guard your mouth against obscene language, lies, talebearing, slander, and mockery. You should also guard your ears from hearing such talk. You must also be careful to fulfill your vows, not to worry too much about things, and be careful to guard yourself against lewd thoughts. Before going to sleep you should study Torah or say the first four Chapters of the Psalms,7See Kitzur Shulchan Aruch 132:5. and be careful not to sleep alone in a room.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)