ב אֲפִלּוּ לְהַרְהֵר בְּדִבְרֵי תּוֹרָה, אָסוּר בְּבֵית הַכִּסֵא וּבְבֵית הַמֶּרְחָץ וּבִמְקוֹם הַטִּנֹּפֶת, וְהוּא הַמָּקוֹם שֶׁיֵּשׁ בּוֹ צוֹאָה וּמֵי רַגְלַיִם: הַגָּה: וַאֲפִלּוּ הִלְכוֹת הַמֶּרְחָץ אָסוּר לִלְמֹד בְּמֶרְחָץ (רַ"ן פ' כירה וּבֵית יוֹסֵף בְּשֵׁם א"ח): דְּבָרִים שֶׁל חֹל מֻתָּר לְאָמְרָם שָׁם בִּלְשׁוֹן הַקֹּדֶשׁ, וְכֵן הַכִּנּוּיִים כְּגוֹן רַחוּם, נֶאֱמָן וְכַיּוֹצֵא בּוֹ, מֻתָּר לְאָמְרָם שָׁם. אֲבָל הַשֵּׁמוֹת שֶׁאֵינָם נִמְחָקִין, אָסוּר לְהַזְכִּירָם שָׁם. וְאִם נִזְדַּמֵּן לוֹ שָׁם לְהַפְרִישׁ מִדָּבָר הָאָסוּר, מַפְרִישׁ, וַאֲפִלּוּ בִּלְשׁוֹן הַקֹּדֶשׁ וּבְעִנְיְנֵי קֹדֶשׁ: הַגָּה: וּבְמָקוֹם שֶׁמֻּתָּר לְהַרְהֵר בְּדִבְרֵי תּוֹרָה מֻתָּר לִפְסֹק דִּין, וּבִלְבַד שֶׁלֹּא יֹאמַר טַעֲמוֹ שֶׁל דָּבָר (רַ"ן פ"ק דְּשַׁבָּת וּפֶרֶק כָּל הַצְלָמִים):
2 Even to consider matters of Torah, is forbidden in the bathroom, and in the bathhouse, and in a filthy place - and this is in a place in which there is excrement or urine. Rema: and it is even forbidden to study the laws of the bathhouse in the bathhouse (Ran: Perek "Kirah" and Nimukei Yosef in the name of Orchot Chaim). It is permitted to speak of secular matters in the holy tongue there. And similarly, nicknames [for God] such as Merciful One, Faithful One, and similar, it is permitted to say them there. But the names that may not be erased - it is forbidden to mention them there. And if one happened upon someone there [who is doing something that is prohibited, and they are required] to restrain them from that prohibited matter, they may restrain them, and even using the holy tongue and even regarding holy matters. Rema: And in a place that it is permitted to contemplate matters of Torah [but not discuss them], it is permitted to rule in a matter of law as long as one does not say the rationale regarding the matter (Ran Perek 1 of Shabbat and Perek "Kol haTzlamim").