יִֽירָא֥וּךָ עִם־שָׁ֑מֶשׁ וְלִפְנֵ֥י יָ֝רֵ֗חַ דּ֣וֹר דּוֹרִֽים׃
저가 백성의 가난한 자를 신원하며 궁핍한 자의 자손을 구원하며 압박하는 자를 꺾으리로다
Mishnah Berakhot
If a man was standing saying the tefillah and he remembers that he is one who has had a seminal emission, he should not stop but he should abbreviate [the blessings]. If he went down to immerse, if he is able to come up and cover himself and recite the Shema before the rising of the sun, he should go up and cover himself and recite, but if not he should cover himself with the water and recite. He should not cover himself either with foul water or with steeping water until he pours fresh water into it. How far should he remove himself from it and from excrement? Four cubits.