The Rambam · Sefer Ahavah
הלכות קריאת שמע ג׳Reading the Shema 3
Chapter 3 of 4 in Reading the Shema — 19 halachot
Halacha 1א׳
הקורא את שמע רוחץ ידיו במים קודם שיקרא הגיע זמן קריאתה ולא מצא מים קודם שיקרא לא יאחר קריאתה וילך לבקש מים אלא מקנח ידיו בעפר או בצרור או בקורה וכיוצא בהן וקורא.
Before reading the Shema, the reader washes his hands in water. If the time for reading has arrived, and he does not find water for the preliminary washing, he is not to delay the reading in order to search for water; but he is to wipe his hands with earth, or on anything solid, on a beam or similar object, and then he reads.
Halacha 2ב׳
אין קורין לא בבית המרחץ ולא בבית הכסא אע"פ שאין בו צואה ולא בבית הקברות ולא בצד המת עצמו ואם הרחיק ארבע אמות מן הקבר או מן המת מותר לקרות וכל מי שקרא במקום שאין קורין בו חוזר וקורא.
The Shema is not to be read in a bath house nor in a latrine, even if there is no ordure in it, nor in a graveyard, nor in proximity to a corpse. One is permitted to read it after moving away from the grave of a corpse to a distance of at least four cubits. If the Shema was read in a place where it was improper to do so, it must be read a second time.
Halacha 3ג׳
בית הכסא החדש שהוכן ועדיין לא נשתמש בו מותר לקרות קריאת שמע לנגדו אבל לא בתוכו מרחץ החדש מותר לקרות בתוכו היו שני בתים זימן אחד מהם לבית הכסא ואמר על השני וזה הרי השני ספק אם הזמינו לכך אם לא לפיכך אין קורין בו לכתחלה ואם קרא יצא אמר גם זה הרי שניהם מזומנין ואין קוראין בהן חצר המרחץ והוא המקום שבני אדם עומדין בו לבושין מותר לקרות בו קריאת שמע.
Where a latrine has been newly erected but not yet used, the Shema may be read facing it, but not within it. In a new bath house, the Shema may be read. Where one of two buildings was set apart as a latrine, and the owner said of the second building, "And this", it is doubtful whether the latter has also been appropriated to the same use as the former, or not. Hence one may not deliberately read the Shema there, but whoever has done so has fulfilled his duty. If the owner uttered the phrase, "This too", both buildings are deemed to have been set apart as latrines, and the Shema may not be read in either. It is permitted to read the Shema in the courtyard of a bath house, i.e. in the place where people stand about, clothed.
Mishneh Torah, Hebrew Wikisource edition, via Sefaria — CC BY-SA
English: The Mishneh Torah by Maimonides, tr. Moses Hyamson, 1937-1949 — public domain