The Shulchan Aruch · Orach Chayim
אורח חיים קע״בOrach Chayim 172
Siman 172 of 697 in Orach Chayim — 2 se'ifim
הלכות סעודהLaws of the Meal· siman 172
Se’if 1א׳
שָׁכַח וְהִכְנִיס מַשְׁקִין לְתוֹךְ פִּיו בְּלֹא בְּרָכָה, בּוֹלְעָן וְאֵינוֹ מְבָרֵךְ עֲלֵיהֶם בְּרָכָה רִאשׁוֹנָה. הַגָּה: וְיֵשׁ אוֹמְרִים דִּמְבָרֵךְ עֲלֵיהֶם, וְכֵן נִרְאֶה עִקָּר (הָרַשְׁבָּ"א בְּשֵׁם הָרַאֲבָ"ד וְהָרֹא"שׁ פֶּרֶק ג' שֶׁאָכְלוּ וְכֵן דִּבְרֵי הַרַמְבַּ"ם פ"ח מהל' בְּרָכוֹת).
One who drinks or eats without a blessing. Containing 2 paragraphs If one put a drink in their mouth without saying a blessing, they should swallow it and not say a first blessing (a before blessing). Rema: And there are those who say a blessing and so it seems is the core practice [Rashba, in the name of the Raavad, and the Rosh Chapter 3 and also Maimonides Chapter 8 laws of blessings]
Se’if 2ב׳
שָׁכַח וְהִכְנִיס אֳכָלִין לְתוֹךְ פִּיו בְּלֹא בְּרָכָה, אִם הוּא דָּבָר שֶׁאֵינוֹ נִמְאָס אִם יִפְלְטֶנּוּ, יִפְלְטֶנּוּ וִיבָרֵךְ עָלָיו; וְאִם הוּא דָּבָר שֶׁנִּמְאָס, מְסַלְּקוֹ לְצַד אַחֵר וּמְבָרֵךְ.
If one put food in his mouth without reciting a beracha and it would not be repulsive to remove it he should spit it out and recite the beracha. If it would be repulsive he should move it to the side of his mouth and recite the beracha with the food in his mouth
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0