The Shulchan Aruch · Orach Chayim
אורח חיים פ׳Orach Chayim 80
Siman 80 of 697 in Orach Chayim — 1 se'if
הלכות קריאת שמעLaws of Reciting Shema· siman 80
Se’if 1א׳
מִי שֶׁבָּרִי לוֹ שֶׁאֵינוֹ יָכוֹל לַעֲמֹד עַל עַצְמוֹ מִלְּהָפִיחַ עַד שֶׁיִּגְמֹר קְרִיאַת שְׁמַע וּתְפִלָּה, מוּטָב שֶׁיַּעֲבֹר זְמַן קְרִיאַת שְׁמַע וּתְפִלָּה וְלֹא יִתְפַּלֵּל, מִמַּה שֶּׁיִּתְפַּלֵּל בְּלֹא גּוּף. נָקִי וְאִם עָבַר זְמַן תְּפִלָּה אָנוּס הוּא, וּמִתְפַּלֵּל מִנְחָה שְׁתַּיִם, וְאִם יֵרָאֶה לוֹ שֶׁיָּכוֹל לַעֲמֹד עַצְמוֹ בִּשְׁעַת קְרִיאַת שְׁמַע, יָנִיחַ תְּפִלִּין בֵּין אַהֲבָה לִקְרִיאַת שְׁמַע, הַגָּה: וּמְבָרֵךְ עֲלֵיהֶם (טוּר):
One Who is Not Able to Guard [Themselves] from Flatulence. Containing 1 S'if: One whose health is such that they are not able restrain themselves from flatulence until they complete the Sh'ma and prayer [i.e. the Amidah] - it is better that they should let the time of the Recitation of the Sh'ma and prayer pass and not pray [during that time] than to pray without a clean body. And if the time of prayer passed, they are considered to have had an extenuating circumstance, and they should pray [the] mincha [Amidah] twice. And if it seems to him that he is able to restrain himself at the time of the Recitation of the Sh'ma, he should don his tefillin between Ahavah [Rabbah/Olam] and the Recitation of the Sh'ma.Rem"a: and one blesses over them [Tur]
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0