Reference for Berakhot 2:1
איתא חמי משעה שהכהנים נכנסין לוכל בתרומתן יממא הוא ועם כוכביא הוא משעה שדרך בני אדם נכנסין לאכול פתן בלילי שבת שעה ותרתי ליליא הוא ואת אמרת קרובים דבריהן להיות שוין אמר רבי יוסי תיפתר באילין כופרניא דקיקייא דאורחיהון מסתלקא עד דהוא יממא דצדי לון מיקמי חיותא. תני הקורא קודם לכן לא יצא ידי חובתו אם כן למה קורין אותה בבית הכנסת אמר רבי יוסי אין קורין אותה בבית הכנסת בשביל לצאת ידי חובתו אלא כדי לעמוד בתפילה מתוך דבר של תורה. ר' זעירא בשם רב ירמיה ספק בירך על מזונו ספק לא בירך צריך לברך דכתיב (דברים ח׳:י׳) ואכלת ושבעת וברכת. ספק התפלל ספק לא התפלל אל יתפלל ודלא כרבי יוחנן דא"ר יוחנן ולואי שיתפלל אדם כל היום כולו למה שאין תפילה מפסדת. ספק קרא ספק לא קרא נישמעינה מן הדא הקורא קודם לכן לא יצא ידי חובתו וקודם לכן לאו ספק הוא ואת אמרת צריך לקרות הדא אמרה ספק קרא ספק לא קרא צריך לקרות. סימן לדבר משיצאו הכוכבים. ואף על פי שאין ראיה לדבר זכר לדבר (נחמיה ד׳:ט״ו) ואנחנו עושים במלאכה וחציים מחזיקים ברמחים מעלות השחר עד צאת הכוכבים וכתיב (שם) והיה לנו הלילה למשמר והיום למלאכה. כמה כוכבים יצאו ויהא לילה. רבי פינחס בשם רבי אבא בר פפא כוכב אחד ודאי יום. שנים ספק לילה. שלשה ודאי לילה. שני ספק והכתיב עד צאת הכוכבים אלא מיעוט כוכבים שנים קדמיא לא מתחשב. בערב שבת ראה כוכב אחד ועשה מלאכה פטור. שנים מביא אשם תלוי. שלשה מביא חטאת. במוצאי שבת ראה כוכב אחד ועשה
Come and see, [let us test this hypothesis by implication from our mishnah]: "...from the time that the Kohanim go in to eat their terumah." It is [still close to] daytime. It is as soon as the stars come out!? [and the Tosefta says:] "...from the time when people usually go in to eat their bread on the eve of the Sabbath." That is an hour or two after nightfall! [These are obviously two very different times.] And yet you say: "These opinions are close enough to be equal!?" --Rabbi Yose said: "Let the problem be resolved [by claiming that the Tosefta refers only] to those small villages whose way is to go on up [home] while it is still day, to spare themselves from the animals." It teaches in a Baraita: "The one who recites [the Shema] before this has not fulfilled their obligation. If so, why do we recite it [before nightfall] in the synagogue? Rabbi Yose said: 'We do not recite it in the synagogue to fulfill its obligation. Rather, [we recite it] so that we may stand up in prayer after a word of Torah." Rabbi Zeira in the name of Rav Yirmiyah: "If there is doubt whether he made the blessings after his food or not, he should make the blessings [even though he may be doing it a second time]. For it is written (Deut. 8:10) 'And you shall eat, and you shall be satisfied, then you shall bless [the LORD your God...]' If there is doubt whether he prayed or not, he should not pray [as he may have already done so.]" But he disagrees with Rabbi Yohanan. For Rabbi Yohanan said: "If only a person could pray the entire day!" Why? For prayer is never a waste. If there is doubt whether he recited [Shema] or not, we may gather from this baraita: "The one who recites [the Shema] before this has not fulfilled their obligation." And is not before [nightfall] a time of doubt? And yet you say "he should recite [Shema]." This implies that if there is doubt whether he recited [Shema] or not, he should recite [Shema]. [From Tosefta 1:1] "The indicator of this is when the stars come out. And though there is no proof of it [from Scripture], there is a trace of it: (Neh. 4:21) '...we were doing the labor, and half of them were holding the spears from the break of dawn until the stars came out.' And he writes: '...it is guard-time for us by night and labor by day." How many stars should come out so that it becomes night? Rabbi Pinhas in the name of Rabbi Abba bar Papa: "One star, surely day. Two, doubt. Three, surely night." "...two doubt," [really]? But is it not written, "...until the stars came out!?" Rather, [the plural] "stars" indicates two! [Not three!]--The first one doesn't count. [An unattributed baraita:] "If he sees one star on the eve of the Sabbath and performs a creative task, he is exempt [from punishment]. Two, he brings a conditional guilt offering, Three, he brings a sin offering. On the departure of the Sabbath, if he sees on star and performs a creative task,