שולחן ערוך
אמים סרוחים באו מי משרה ששורין בהן פשתן או קנבוס צריך להרחיק מהם גכמו מן הצואה:
Foul-smelling water (water that has become putrid and gives off a stench) or steeping-water in which flax or hemp is soaked (which likewise gives off a foul smell) — one must distance oneself from them, when reciting Shema or praying, just as one must distance oneself from excrement.
משנה ברורה
(א) מים סרוחים - ע"כ אותן מקואות שמימיהן סרוחין בימות הקיץ לא מיבעי דאסור לברך בתוכן אפילו הרחקה כצואה בעינן [פמ"ג] ודוקא אם מסריח עד שדרך בני אדם להצטער מאותו הר"ר. גינה שממשיכין לה מים סרוחים ורעים והיא סמוכה לבהכ"נ אף אם קדמה בעל הגינה צריך להרחיק דהוי מילתא דאיסורא [ש"ת]:
On the words "foul-smelling water": Therefore, regarding those mikvaos whose waters turn foul during the summer days — it is not merely that it is forbidden to recite a blessing while standing within them, but we even require the same distancing from them as from excrement. [the Pri Megadim] This applies specifically when it stinks to the point that people are typically pained by that bad odor (reiach ra). A garden into which foul and putrid water is channeled, and which is adjacent to a synagogue — even if the garden owner was there first (before the synagogue), the foul water must be kept away, since this is a matter of prohibition. [ש"ת]
(ב) או מי משרה - שמסריח וכ"ש משרה של כובסין שמכבסין בהם בגדי קטנים שיש בהם צואה [שנו"א]:
On the words "or steeping-water": This refers to steeping-water that gives off a foul smell. And all the more so the soaking-water of launderers, in which they wash small children's garments that have excrement on them. [שנו"א]
(ג) כמו וכו' - ר"ל לפניו כמלא עיניו ולאחריו ד"א ממקום שכלה הריח וכתב הפמ"ג דאיסורו הוא מה"ת כמו צואה. כתב הא"ר והובא בפמ"ג במרתפות היין שיש ריח רע מעופש וקץ ביה אסור לקרות ק"ש. וה"ה כל כה"ג. וברמב"ם פ"ד מהלכות תפלה הלכה ט' משמע דמותר ורק גדולי החכמים היו נזהרין מזה בעת התפלה עיי"ש ולפלא שלא העירו בזה:
On the words "just as, etc.": That is to say: in front of him he must distance himself as far as his eye can see, and behind him, four cubits (amos) from the place where the smell ceases. The Pri Megadim wrote that its prohibition is from the Torah (mi-de'oraisa), just like that of excrement. The Eliyah Rabbah wrote — and it is cited in the Pri Megadim — that in wine cellars which have a foul, moldy odor that one finds repulsive, it is forbidden to recite the Shema. And likewise in any similar case. But in the Rambam, chapter 4 of the Laws of Prayer, halacha 9, it is implied that it is permitted, and that only the great sages would take care to avoid this at the time of prayer; see there. And it is surprising that the authorities did not point out this discrepancy.