And since the Torah forbade them even in a camp, it is a fortiori for a man who stands and prays, or recites Shema, or recites a blessing, who mentions the Holy Name many times and directs his heart to Hashem, that the place surrounding him must be clean of these two things: from excrement and from nakedness. For all that surrounds him is certainly like the camp of the Shekhinah at the time of the act. And our teachers, of blessed memory, in Shabbat (150a) inferred from the language of the Torah that in one detail excrement is more stringent than nakedness: for regarding excrement the Torah said, "and your camp shall be holy," and it follows that it is forbidden even in the contemplation of Torah. But regarding "nakedness" it is written "matter [davar]," from which we learn that speech is forbidden, but contemplation is permitted; see there. And this is the foundation for many laws that will be explained in this matter. And any type of Torah study, whether the Written Torah or the Oral Torah, whether Midrash or Zohar, or other holy books—it is forbidden to study them while one of these two things is present. For all words of Torah are His Holy Names, as is known, and we read regarding them, "and your camp shall be holy, and He shall see no unseemly thing [ervat davar] in you."
וכיון דאפילו במחנה אסרן הכתוב, קל וחומר להאיש העומד ומתפלל, או קורא קריאת שמע, או מברך, שמזכיר שם הקדוש כמה פעמים ומכוין לבו לה', שצריך שהמקום שסביביו יהיה נקי משני דברים אלו: מצואה ומערוה. דכל סביביו פשיטא דהוי כמחנה שכינה בעת מעשה. ורבותינו ז"ל בשבת (קנ א) דקדקו מלשון התורה דבפרט אחד חמור צואה מערוה: דבצואה אמרה תורה "והיה מחניך קדוש", וממילא דגם בהרהור תורה אסור. אבל ב"ערוה" כתיב "דבר", שמע מינה דדיבור – אסור, הרהור – מותר, עיין שם. וזהו יסוד להרבה דינים שיתבארו בענין זה. וכל מין לימוד תורה, הן שבכתב הן שבעל פה, הן מדרש הן זוהר, הן שארי ספרי קודש – אסור ללמדם בהיות אחד משני דברים אלו. דכל דברי תורה הם שמותיו הקדושים כידוע, וקרינן בהו "והיה מחניך קדוש, ולא יראה בך ערות דבר".