The Shulchan Aruch · Orach Chayim
אורח חיים ס״זOrach Chayim 67
Siman 67 of 697 in Orach Chayim — 1 se'if
הלכות קריאת שמעLaws of Reciting Shema· siman 67
Se’if 1א׳
סָפֵק אִם קָרָא קְרִיאַת שְׁמַע, חוֹזֵר וְקוֹרֵא וּמְבָרֵךְ לְפָנֶיהָ וּלְאַחֲרֶיהָ. אֲבָל אִם יוֹדֵעַ שֶׁקְּרָאָהּ, אֶלָּא שֶׁמְּסֻפָּק אִם בֵּרַךְ לְפָנֶיהָ וּלְאַחֲרֶיהָ, אֵינוֹ חוֹזֵר וּמְבָרֵךְ:
The Law Regarding One Who Had A Doubt If They Recited the Recitation of the Sh'ma - Containing 1 section If one had a doubt if they recited the Sh'ma, they should go back and recite it [again] and make the blessing before and after it. But if they know that they recited it, but are doubtful if they blessed before and after it, they do not go back and bless.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0