The Shulchan Aruch · Orach Chayim
אורח חיים תקצ״הOrach Chayim 595
Siman 595 of 697 in Orach Chayim — 1 se'if
הלכות ראש השנהLaws of Rosh Hashanah· siman 595
Se’if 1א׳
מִי שֶׁאֵינוֹ בָּקִי בַּתְּקִיעוֹת וְלֹא בְּסֵדֶר תְּפִלַּת מוּסָף, וּלְפָנָיו שְׁתֵּי עֲיָרוֹת בְּאַחַת בְּקִיאִים בַּתְּקִיעוֹת וְלֹא בִּתְפִלַּת מוּסָף וּבְאַחַת בְּקִיאִין בִּתְפִלַּת מוּסָף וְלֹא בַּתְּקִיעוֹת, הוֹלֵךְ לְמָּקוֹם שֶׁבְּקִיאִים בַּתְּקִיעוֹת, אֲפִלּוּ שֶׁל מוּסָף וַדַּאי וְשֶׁל תְּקִיעוֹת סָפֵק. הַגָּה: מִיהוּ אִם יָכוֹל לֵילֵךְ לִמְקוֹם שֶׁמִּתְפַּלְּלִים וְיֵשׁ שְׁהוּת בַּיּוֹם שֶׁיִּשְׁמַע אַחַר כָּךְ הַתְּקִיעוֹת בַּמָּקוֹם שֶׁתּוֹקְעִין, יְקַיֵּם שְׁתֵּי הַמִּצְוֹת, דְּכָל הַיּוֹם כָּשֵׁר לִתְקֹעַ (בֵּית יוֹסֵף בְּשֵׁם יְרוּשַׁלְמִי).
One who is not an expert in shofar blasts (Tekiyos) nor in the (Rosh HaShana) Prayers. And in it is one paragraph One who is not an expert in neither the Tekiyos nor the order of the Musaf Prayer, and before him is two cities. In one, experts in the Tekiyos but not the Musaf Prayer. And in one, experts in the Musaf Prayer but not the Tekiyos. He should go to the place that has experts in the Tekiyos even if the Musaf is for certain (i.e. their expertise), and Tekiyos is a question (i.e. in their expertise). Rema: However, if he is able to go to one place that prays, and there are hours in the day to hear afterward the Tekiyos in the place that shofar blasts, he should fulfill two mitzvos, because the whole day is fitting for shofar blasting (Bais Yosef in the name of the Talmud Yerushalmi).
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0