סימן קנא סעיף ה
מִי שֶרָאָה, חַס וְשָׁלוֹם, קְרִי בַּלַּיְלָה, כְּשֶׁנֵּעוֹר מִשְּׁנָתוֹ, יִטּוֹל יָדָיו וְיֹּאמַר בְּשִׁבְרוֹן לֵב, רִבּוֹנוֹ שֶל עוֹלָם, עָשִׂיתִי זֹאת שֶׁלֹּא בְּכַוָּנָה, רַק בְּהִרְהוּרִים רָעִים וּבְמַחֲשָׁבוֹת רָעוֹת. לָכֵן יְהִי רָצוֹן מִלְּפָנֶיךָ, ה' אֱלֹהַי וֵאלֹהֵי אֲבוֹתַי, מְחַק בְּרַחֲמֶיךָ הָרַבִּים עָוֹן זֶה, וְתַצִּילֵנִי מֵהִרְהוּרִים רָעִים וְכַיוֹצֵא בָהֶם לְעוֹלָם וָעֶד, אָמֵן וְכֵן יְהִי רָצוֹן.
If, God forbid, you had a seminal emission at night, upon waking up from your sleep you should wash your hands and say with a contrite heart, "Master of the Universe I have done this unwittingly but it was due to sinful thoughts and sinful reflections; therefore, may it be Your will Adonoy, my God, and the God of my fathers, to erase this iniquity through your great mercy, and save me from sinful thoughts, and from similar occurrences forever and ever. Amein, so may it be Your will."
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)