Sefer HaMiddot· Rabbi Nachman of Breslov
Sefer HaMiddot, Nocturnal Emission II:5
5. A great rectification for a (nocturnal) occurrence, God forbid, is to say these ten chapters of Psalms on the same day that it happened to him, God forbid. These are they: 16, "A mikhtam of David"; 32, "Of David, a maskil. Happy"; 41, "Happy is he who considers the poor"; 42, "As the hart longs"; 59, "For the conductor, do not destroy"; 77, "For Jeduthun"; 90, "A prayer of Moses"; 105, "Give thanks to God, call"; 137, "By the rivers of Babylon"; 150, "Praise God in His sanctuary." And know with certainty that these ten chapters are very, very effective for the rectification of this sin; and one who is careful to say them as mentioned need not fear any more at all, for he will certainly be rectified through this, for they are a very great rectification.
View original Hebrew
ה. תִּקּוּן גָּדוֹל לְמִקְרֶה, חַס וְשָׁלוֹם, לוֹמַר אֵלּוּ עֲשָׂרָה קַפִּיטְל תְּהִלִּים בְּאוֹתוֹ הַיּוֹם, שֶׁקָּרָה לוֹ, חַס וְשָׁלוֹם, וְאֵלּוּ הֵן: ט"ז "מִכְתָּם לְדָוִד", ל"ב "לְדָוִד מַשְׂכִּיל אַשְׁרֵי", מ"א "אַשְׁרֵי מַשְׂכִּיל אֶל דָּל", מ"ב "כְּאַיָּל תַּעֲרג", נ"ט "לַמְנַצֵּחַ אַל תַּשְׁחֵת", ע"ז "עַל יְדוּתוּן", צ' "תְּפִילָּה לְמשֶׁה", ק"ה "הוֹדוּ לַה' קִרְאוּ", קל"ז "עַל נַהֲרוֹת בָּבֶל", ק"נ "הַלְלוּ אֵל בְּקָדְשׁוֹ". וְתֵדַע נֶאֱמָנָה, שֶׁאֵלּוּ עֲשָׂרָה קַפִּיטְלִיךְ מְסֻגָּלִים מְאד מְאד. לְתִקּוּן עָווֹן זֶה, וְהַנִּזְהָר בָּזֶה לוֹמַר אוֹתָם כַּנַּ"ל, אֵין צָרִיךְ לְהִתְיָרֵא עוֹד כְּלָל, כִּי בְּוַדַּאי יְתֻקַּן בָּזֶה, כִּי הֵם תִּקּוּן גָּדוֹל מְאד.Read this passage within Nocturnal Emission, in its full context