The Shulchan Aruch · Orach Chayim
אורח חיים תקצ״דOrach Chayim 594
Siman 594 of 697 in Orach Chayim — 1 se'if
הלכות ראש השנהLaws of Rosh Hashanah· siman 594
Se’if 1א׳
יָחִיד שֶׁלֹּא תָּקַע, חֲבֵרוֹ יָכוֹל לִתְקֹעַ לוֹ לְהוֹצִיאוֹ יְדֵי חוֹבָה; אֲבָל יָחִיד שֶׁלֹּא הִתְפַּלֵּל ט' בְּרָכוֹת, אֵין חֲבֵרוֹ יָכוֹל לְהוֹצִיאוֹ. הַגָּה: וְיֵשׁ חוֹלְקִין וְאוֹמְרִים דְּאִם לֹא יָכוֹל לְהִתְפַּלֵּל, חֲבֵרוֹ יָכוֹל לְהוֹצִיאוֹ בִּתְפִלָּתוֹ (רַ"ן סוֹף רֹאשׁ הַשָּׁנָה וּמָרְדְּכַי וְהַגָּהוֹת אֲשֵׁרִי ספ"ג דְּרֹאשׁ הַשָּׁנָה).
An individual that did not pray, his friend cannot fulfill (for him). And in it is one paragraph. An individual that does not blow shofar, his friend is able to to blow for him to fulfill his obligation. But an individual that did not pray the 9 blessings (of the Rosh HaShana Musaf Prayer), his friend is unable to fulfill (for him). Rema: There are those that argue, and say that if one is not able to pray, then his friend is able to fulfill for him with his (the friend's) prayer (Ran end of tractate Rosh HaShana, Mordechai, and Haagos Ashiri end of the first chapter of Rosh HaShana).
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0