The Shulchan Aruch · Orach Chayim
אורח חיים נ״טOrach Chayim 59
Siman 59 of 697 in Orach Chayim — 5 se'ifim
הלכות קריאת שמעLaws of Reciting Shema· siman 59
Se’if 1א׳
בָּרוּךְ אַתָּה יְיָ אֱלֹהֵינוּ מֶלֶךְ הָעוֹלָם יוֹצֵר אוֹר וּבוֹרֵא חֹשֶׁךְ, תִּקְּנוּ לְהַזְכִּיר מִדַּת לַיְלָה בַּיּוֹם לְהוֹצִיא מִלֵּב הָאֶפִּיקוֹרְסִים שֶׁאוֹמְרִים שֶׁמִּי שֶׁבָּרָא אוֹר לֹא בָּרָא חֹשֶךְ.
Laws of the First Blessing - Of "Who Forms" - and in it are 5 Se-ifim [The blessing of] "Blessed are you Hashem our Lord who forms light and creates darkness" was established to mention the attribute of darkness during the day to address the claim of heretics who say that "The one who created light did not create darkness."
Se’if 2ב׳
אִם טָעָה וְאָמַר אֲשֶׁר בִּדְבָרוֹ מַעֲרִיב עֲרָבִים, וְנִזְכַּר מִיָּד, וְאָמַר יוֹצֵר אוֹר, וְגַם סִיֵּם יוֹצֵר הַמְּאוֹרוֹת, יָצָא. אֲבָל אִם אָמַר בִּדְבָרוֹ מַעֲרִיב עֲרָבִים, וְלֹא אָמַר יוֹצֵר אוֹר, אוֹ לֹא סִיֵּם יוֹצֵר הַמְּאוֹרוֹת, לֹא יָצָא. וְאִם אָמַר יוֹצֵר אוֹר וּבוֹרֵא חֹשֶךְ, אֲשֶׁר בִּדְבָרוֹ מַעֲרִיב עֲרָבִים, וְגַם סִיֵּם מַעֲרִיב עֲרָבִים, לֹא יָצָא: הַגָּה: וְה"ה אִם לֹא אָמַר תְּחִלָּה רַק יוֹצֵר אוֹר, אִם סִיֵּם מַעֲרִיב עֲרָבִים לֹא יָצָא (דִּבְרֵי עַצְמוֹ לְפָרֵשׁ כֵּן הַטּוּר וְהָרֹא"שׁ) אֲבָל אִם סִיֵּם יוֹצֵר הַמְּאוֹרוֹת, כֵּיוָן שֶׁפָּתַח יוֹצֵר אוֹר, יָצָא, אַף עַל פִּי שֶׁהִפְסִיק בְּמַעֲרִיב עֲרָבִים.
If one erred [while praying] and said "the one whose word brings forth evening" but remembered immediately and said "who forms light," and then ends with "who fashions the luminaries," he has fulfilled his obligation. However, if one said "the one whose word brings forth evening" and one did not say "who forms light" or did not conclude with "who fashions the luminaries," then he has not fulfilled his obligation. And if one said, "the one who forms light and creates darkness and whose word brings forth evening," and also concluded with "brings forth evening," he has not fulfilled his obligation. Rem"a: And the same thing applies if one only said at first "who forms light", if he ends with "brings forth evening" then he has not fulfilled one's obligation (his own words to explain the Tur and the Rosh). However, if one concludes with "who fashions the luminaries", since he opened with "who forms light", he has fulfilled his obligation even though he interrupted with "brings forth evening."
Se’if 3ג׳
יֵשׁ אוֹמְרִים שֶׁהַקְּדֻשָּׁה שֶׁבְּיוֹצֵר, יָחִיד אוֹמְרָהּ, לְפִי שֶׁאֵינָהּ אֶלָּא סִפּוּר דְּבָרִים. וְיֵשׁ אוֹמְרִים, שֶׁיָּחִיד מְדַלְּגָהּ, וְאֵינָהּ נֶאֱמֶרֶת אֶלָּא בְּצִבּוּר, וְיֵשׁ לָחוּשׁ לְדִבְרֵיהֶם וְלִזָּהֵר שֶׁיָּחִיד יֹאמְרֶנָּה בְּנִגּוּן וּטְעָמִים כְּקוֹרֵא בַּתּוֹרָה: הַגָּה: וּכְבָר פָּשַׁט הַמִּנְהָג כַּסְּבָרָא הָרִאשׁוֹנָה, וְיָחִיד אוֹמֵר אוֹתָהּ, וּכְשֶׁעוֹנִין קְדֻשָּׁה זֹאת אוֹמְרִים אוֹתָהּ בְּקוֹל רָם (הַגָּהוֹת מיי' בְּנֻסַח הַתְּפִלּוֹת).
There are those who say that the Kedusha [text] in [the] Yotzer [blessing] may be recited by an individual [who is praying alone], since it is only a recitation of a [Biblical] narrative. And there are those who say that an individual [praying alone] should skip over this part, and it should only be recited in public. And one should be concerned for their words (ie. of the latter opinion) and make sure that [if] an individual recites it, he does so with a melody and cantillation, as if reading a Torah portion. Rem"a: And the custom has already become widespread, [that we follow] like the first opinion, that an individual recites it. And when they (ie. the congregation) answer this Kedusha, they say it aloud (Hagahot Maimoni in the Formula of Prayer).
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0