And this is also the opinion of our teachers, the authors of the Shulchan Aruch, in section 1, who wrote: "The time for the recitation of Shema at night is from the time of the emergence of three small stars; and if it is a cloudy day, he should wait until the doubt is removed from his heart. If he recited it before then, he must return and recite it without blessings. And if the congregation recites the Shema early while it is still day, he should recite the Shema and its blessings with them and pray with them, and when the time arrives, he recites the Shema without blessings. However, he should not return and pray at night even though the congregation precedes the night by a great deal, unless he is accustomed to other matters of abstinence and piety, for then it does not appear like arrogance that he returns and prays." Thus far their words. And even if they preceded it by two or three hours before nightfall, as was the custom among them, as is explained in Terumat HaDeshen (siman 1). However, in our days we have not heard of this custom, and only on Shabbat do we precede slightly before sunset, and in this it is certainly forbidden, Heaven forbid, to return and pray, for after plag hamincha it is a complete prayer according to the law, and according to what we explained, even according to the Rabbis it is so; but he should not rely on the recitation of Shema upon the bed (Magen Avraham, subsection 3). And know that even though the Arvit prayer is voluntary, the Rif has already written that we have accepted it upon ourselves as an obligation, and therefore the poskim did not mention this at all, and there is no difference between it and the Shacharit and Mincha prayers. (See Turei Zahav, subsection 2, who wrote at length that the path of the Shulchan Aruch did not find favor in his eyes, and I do not know why, for their path is straight. And what was written in the Shulchan Aruch, "small stars," is not exact, but rather to exclude large ones; see Magen Avraham and Turei Zahav, subsection 1. And what the Magen Avraham wrote in subsection 3, that one who is accustomed to pray at night and erred and began the blessings of the recitation of Shema with the congregation while it was still day, should finish the blessings with the congregation, and at night he should recite the Shema without the blessings and pray, and he should not join the blessing of redemption to the prayer, see there. And behold, it is certainly so, but why should he act thus? For Rav Hai Gaon already warned to pray with the congregation while it is still day, and so it is written in the Shulchan Aruch, and how shall he act contrary to their words? And delve into this.)
וזהו גם דעת רבותינו בעלי השולחן ערוך בסעיף א' שכתבו: "זמן קריאת שמע בלילה משעת יציאת ג' כוכבים קטנים, ואם הוא יום מעונן ימתין עד שיצא הספק מלבו, ואם קראה קודם לכן חוזר וקורא אותה בלא ברכות. ואם הציבור מקדימים לקרות קריאת שמע מבעוד יום, יקרא עמהם קריאת שמע וברכותיה ויתפלל עמהם, וכשיגיע זמן קורא קריאת שמע בלא ברכות. ומיהו לא יחזור ויתפלל בלילה אף על פי שהציבור מקדימים הרבה לפני הלילה, אלא אם כן הוא רגיל בשאר פרישות וחסידות, דאז לא מתחזי כיוהרא מה שיחזור ויתפלל" עכ"ל, ואפילו הקדימו כשנים וג' שעות קודם הלילה כמו שהיה המנהג אצלם, כמבואר בתרומת הדשן (סימן א'). ומיהו בימינו לא שמענו מנהג זה, ורק בשבת אנו מקדימין מעט קודם השקיעה, ובזה וודאי דחלילה לחזור ולהתפלל, דלאחר פלג המנחה הוה מדינא תפלה גמורה, וכפי מה שבארנו גם לרבנן כן הוא, אבל לא יסמוך על הקריאת שמע שעל המטה (מג"א סק"ג). ודע דאף על גב דתפלת ערבית רשות, כבר כתב הרי"ף דקבלנו עלינו כחובה, ולכן הפוסקים לא הזכירו זה כלל, ואין שום הפרש בינה לתפלת שחרית ומנחה. (עיין ט"ז סק"ב שהאריך שלא ישר בעיניו דרך השולחן ערוך ולא ידעתי למה, ודרכם ישרה. ומ"ש בשולחן ערוך "כוכבים קטנים" לאו דווקא, אלא לאפוקי גדולים, ועיין מג"א וט"ז סק"א. ומ"ש המג"א סק"ג דמי שרגיל להתפלל בלילה וטעה והתחיל בברכות קריאת שמע עם הציבור מבעוד יום, יגמור עם הציבור הברכות ובלילה יקרא קריאת שמע בלא הברכות ויתפלל, ולא יסמוך גאולה לתפלה ע"ש. והנה וודאי דכן הוא, אבל למה ינהוג כן, הא כבר הזהיר רב האי גאון להתפלל עם הציבור מבעוד יום וכן כתב בשולחן ערוך, ואיך ינהוג שלא כדבריהם ודו"ק).