The Talmud
ברכות דף ח׳Berachot 8b
Amud b of Berachot 8 — the second side of the page
English rendering prepared for The Gematria — not a historical translation.
Berakhot 8b · ברכות ח׳ ב
ואפילו (במדבר לב) עטרות ודיבון שכל המשלים פרשיותיו עם הצבור מאריכין לו ימיו ושנותיו
And even "Ataroth and Dibon" (Numbers 32); for whoever completes his portions together with the congregation, they lengthen his days and his years for him.
רב ביבי בר אביי סבר לאשלומינהו לפרשייתא דכולא שתא במעלי יומא דכפורי תנא ליה חייא בר רב מדפתי כתיב (ויקרא כג) ועניתם את נפשתיכם בתשעה לחדש בערב
Rav Bibi bar Abaye thought to complete the portions of the whole year on the eve of the Day of Atonement. Chiyya bar Rav of Difti taught him: it is written "and you shall afflict your souls on the ninth of the month in the evening" (Leviticus 23).
וכי בתשעה מתענין והלא בעשרה מתענין אלא לומר לך כל האוכל ושותה בתשיעי מעלה עליו הכתוב כאילו מתענה תשיעי ועשירי.
And do they fast on the ninth? Surely it is on the tenth that they fast! Rather, it is to tell you: whoever eats and drinks on the ninth, Scripture accounts it to him as though he had fasted on the ninth and the tenth.
סבר לאקדומינהו אמר ליה ההוא סבא תנינא ובלבד שלא יקדים ושלא יאחר
He then thought to do them in advance. A certain elder said to him: we have learnt — provided that he does not run ahead and does not fall behind.
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.