Berakhot 26b Origins of the Times for Prayer

אדושם שפָתַי תִּפְתָּח וּפִי יַגִּיד תְּהִלָּתֶךָ:

בָּרוּךְ אַתָּה ה' אֱלקֵינוּ וֵאלקֵי אֲבותֵינוּ. אֱלקֵי אַבְרָהָם. אֱלקֵי יִצְחָק. וֵאלקֵי יַעֲקב. הָאֵל הַגָּדול הַגִּבּור וְהַנּורָא אֵל עֶלְיון. גּומֵל חֲסָדִים טובִים. וְקונֵה הַכּל. וְזוכֵר חַסְדֵּי אָבות. וּמֵבִיא גואֵל לִבְנֵי בְנֵיהֶם לְמַעַן שְׁמו בְּאַהֲבָה:

מֶלֶךְ עוזֵר וּמושִׁיעַ וּמָגֵן: בָּרוּךְ אַתָּה ה', מָגֵן אַבְרָהָם:

O Lord, open my lips and my mouth will declare Your praise.

Blessed are You, Lord our God and God of our fathers, God of Abraham, God of Isaac and God of Jacob; the great, mighty and awesome God, the most high God, Who bestows loving kindness and goodness and is master/creator of all, Who remembers the good deeds of the fathers, and brings a redeemer to their children, in love and for the sake of His name.

King, Helper, Savior, and Shield. Blessed are You, O Lord, Shield of Abraham.

איתמר רבי יוסי ברבי חנינא אמר תפלות אבות תקנום רבי יהושע בן לוי אמר תפלות כנגד תמידין תקנום

It was stated: Rabbi Yosei, son of Rabbi Ḥanina, said: The practice of praying three times daily is ancient, albeit not in its present form; prayers were instituted by the Patriarchs. However, Rabbi Yehoshua ben Levi said that the prayers were instituted based on the daily offerings sacrificed in the Holy Temple, and the prayers parallel the offerings, in terms of both time and characteristics.

תניא כוותיה דרבי יוסי ברבי חנינא ותניא כוותיה דרבי יהושע בן לוי תניא כוותיה דרבי יוסי ברבי חנינא אברהם תקן תפלת שחרית שנאמר וישכם אברהם בבקר אל המקום אשר עמד שם ואין עמידה אלא תפלה שנאמר ויעמד פינחס ויפלל
The Gemara comments: It was taught in a baraita in accordance with the opinion of Rabbi Yosei, son of Rabbi Ḥanina, and it was taught in a baraita in accordance with the opinion of Rabbi Yehoshua ben Levi. The Gemara elaborates: It was taught in a baraita in accordance with the opinion of Rabbi Yosei, son of Rabbi Ḥanina: Abraham instituted the morning prayer, as it is stated when Abraham came to look out over Sodom the day after he had prayed on its behalf: “And Abraham rose early in the morning to the place where he had stood before the Lord” (Genesis 19:27), and from the context as well as the language utilized in the verse, the verb standing means nothing other than prayer, as this language is used to describe Pinehas’ prayer after the plague, as it is stated: “And Pinehas stood up and prayed and the plague ended” (Psalms 106:30). Clearly, Abraham was accustomed to stand in prayer in the morning.

וַיַּשְׁכֵּ֥ם אַבְרָהָ֖ם בַּבֹּ֑קֶר אֶל־הַ֨מָּק֔וֹם אֲשֶׁר־עָ֥מַד שָׁ֖ם אֶת־פְּנֵ֥י ה'׃

Next morning, Abraham hurried to the place where he had stood before the LORD,

וַיַּעֲמֹ֣ד פִּֽ֭ינְחָס וַיְפַלֵּ֑ל וַ֝תֵּעָצַ֗ר הַמַּגֵּפָֽה׃

Phinehas stepped forth and intervened, and the plague ceased.

יצחק תקן תפלת מנחה שנאמר ויצא יצחק לשוח בשדה לפנות ערב ואין שיחה אלא תפלה שנאמר תפלה לעני כי יעטף ולפני ה׳ ישפך שיחו
Isaac instituted the afternoon prayer, as it is stated: “And Isaac went out to converse [lasuaḥ] in the field toward evening” (Genesis 24:63), and conversation means nothing other than prayer, as it is stated: “A prayer of the afflicted when he is faint and pours out his complaint [siḥo] before the Lord” (Psalms 102:1). Obviously, Isaac was the first to pray as evening approached, at the time of the afternoon prayer.

וַיֵּצֵ֥א יִצְחָ֛ק לָשׂ֥וּחַ בַּשָּׂדֶ֖ה לִפְנ֣וֹת עָ֑רֶב וַיִּשָּׂ֤א עֵינָיו֙ וַיַּ֔רְא וְהִנֵּ֥ה גְמַלִּ֖ים בָּאִֽים׃

And Isaac went out walking in the field toward evening and, looking up, he saw camels approaching.

תְּ֭פִלָּה לְעָנִ֣י כִֽי־יַעֲטֹ֑ף וְלִפְנֵ֥י ה' יִשְׁפֹּ֥ךְ שִׂיחֽוֹ׃

A prayer of the lowly man when he is faint and pours forth his plea before the LORD.
יעקב תקן תפלת ערבית שנאמר ויפגע במקום וילן שם ואין פגיעה אלא תפלה שנאמר ואתה אל תתפלל בעד העם הזה ואל תשא בעדם רנה ותפלה ואל תפגע בי
Jacob instituted the evening prayer, as it is stated: “And he encountered [vayifga] the place and he slept there for the sun had set” (Genesis 28:11). The word encounter means nothing other than prayer, as it is stated when God spoke to Jeremiah: “And you, do not pray on behalf of this nation and do not raise on their behalf song and prayer, and do not encounter [tifga] Me for I do not hear you” (Jeremiah 7:16). Jacob prayed during the evening, after the sun had set.

וַיִּפְגַּ֨ע בַּמָּק֜וֹם וַיָּ֤לֶן שָׁם֙ כִּי־בָ֣א הַשֶּׁ֔מֶשׁ וַיִּקַּח֙ מֵאַבְנֵ֣י הַמָּק֔וֹם וַיָּ֖שֶׂם מְרַֽאֲשֹׁתָ֑יו וַיִּשְׁכַּ֖ב בַּמָּק֥וֹם הַהֽוּא׃

He came upon a certain place and stopped there for the night, for the sun had set. Taking one of the stones of that place, he put it under his head and lay down in that place.

וְאַתָּ֞ה אַל־תִּתְפַּלֵּ֣ל ׀ בְּעַד־הָעָ֣ם הַזֶּ֗ה וְאַל־תִּשָּׂ֧א בַעֲדָ֛ם רִנָּ֥ה וּתְפִלָּ֖ה וְאַל־תִּפְגַּע־בִּ֑י כִּי־אֵינֶ֥נִּי שֹׁמֵ֖עַ אֹתָֽךְ׃

As for you, do not pray for this people, do not raise a cry of prayer on their behalf, do not plead with Me; for I will not listen to you.
ותניא כוותיה דרבי יהושע בן לוי מפני מה אמרו תפלת השחר עד חצות שהרי תמיד של שחר קרב והולך עד חצות ורבי יהודה אומר עד ארבע שעות שהרי תמיד של שחר קרב והולך עד ארבע שעות
And it was taught in a baraita in accordance with the opinion of Rabbi Yehoshua ben Levi that the laws of prayer are based on the laws of the daily offerings: Why did the Rabbis say that the morning prayer may be recited until noon? Because, although the daily morning offering is typically brought early in the morning, it may be sacrificed until noon. And Rabbi Yehuda says: My opinion, that the morning prayer may be recited until four hours into the day, is because the daily morning offering is sacrificed until four hours.
ומפני מה אמרו תפלת המנחה עד הערב שהרי תמיד של בין הערבים קרב והולך עד הערב רבי יהודה אומר עד פלג המנחה שהרי תמיד של בין הערבים קרב והולך עד פלג המנחה
And why did the Rabbis say that the afternoon prayer may be recited until the evening? Because the daily afternoon offering is sacrificed until the evening. Rabbi Yehuda says that the afternoon prayer may be recited only until the midpoint of the afternoon because, according to his opinion, the daily afternoon offering is sacrificed until the midpoint of the afternoon.
ומפני מה אמרו תפלת הערב אין לה קבע שהרי אברים ופדרים שלא נתעכלו מבערב קרבים והולכים כל הלילה
And why did they say that the evening prayer is not fixed? Because the burning of the limbs and fats of the offerings that were not consumed by the fire on the altar until the evening. They remained on the altar and were offered continuously throughout the entire night.
ומפני מה אמרו של מוספין כל היום שהרי קרבן של מוספין קרב כל היום רבי יהודה אומר עד שבע שעות שהרי קרבן מוסף קרב והולך עד שבע שעות
And why did the Rabbis say that the additional prayer may be recited all day? Because the additional offering is brought throughout the entire day. However, Rabbi Yehuda says that the additional prayer may be recited until the seventh hour of the day, because the additional offering is sacrificed until the seventh hour.
ואיזו היא מנחה גדולה משש שעות ומחצה ולמעלה ואיזו היא מנחה קטנה מתשע שעות ומחצה ולמעלה
The baraita continues and states that there are two times for the afternoon prayer. Greater, earlier minḥa [minḥa gedola] and lesser, later minḥa [minḥa ketana]. The Gemara clarifies the difference between them: Which is minḥa gedola? From six-and-a-half hours after sunrise and on, which is a half an hour after noon and on. It is the earliest time that the daily afternoon offering may be sacrificed, as in the case on the eve of Passover that occurs on Shabbat. Which is minḥa ketana? From nine-and-a-half hours and on, which is the standard time that the daily afternoon offering is sacrificed.
איבעיא להו רבי יהודה פלג מנחה קמא קאמר או פלג מנחה אחרונה קאמר תא שמע דתניא רבי יהודה אומר פלג המנחה אחרונה אמרו והיא אחת עשרה שעות חסר רביע
On that note, a dilemma was raised before them: Rabbi Yehuda, who holds that the afternoon prayer may be recited only until the midpoint of the afternoon, does he say the midpoint of the first minḥa, minḥa gedola? Or, does he say the midpoint of the last minḥa? Come and hear an explicit resolution to this dilemma: As it was taught in a baraita, Rabbi Yehuda says: They said the midpoint of the last minḥa, and that is eleven hours minus a quarter of an hour after sunrise, i.e., an hour-and-a-quarter hours before sunset.
נימא תיהוי תיובתיה דרבי יוסי ברבי חנינא אמר לך רבי יוסי ברבי חנינא לעולם אימא לך תפלות אבות תקנום ואסמכינהו רבנן אקרבנות דאי לא תימא הכי תפלת מוסף לרבי יוסי ברבי חנינא מאן תקנה אלא תפלות אבות תקנום ואסמכינהו רבנן אקרבנות:
In any case, it is clear that according to this baraita the halakhot of prayer are based on the Temple offerings. The Gemara suggests: Let us say that this is a conclusive refutation of the opinion of Rabbi Yosei, son of Rabbi Ḥanina, who held that the forefathers instituted the prayers. Rabbi Yosei, son of Rabbi Ḥanina, could have said to you: Actually, I will say to you that the Patriarchs instituted the prayers and the Sages based the times and characteristics of prayer on the Temple offerings, even though they do not stem from the same source. As, if you do not say so, that even Rabbi Yosei, son of Rabbi Ḥanina, would agree that the laws of offerings and those of prayers are related, then, according to Rabbi Yosei, son of Rabbi Ḥanina, who instituted the additional prayer? It is not one of the prayers instituted by the forefathers. Rather, even according to Rabbi Yosei, son of Rabbi Ḥanina, the prayers were instituted by the Patriarchs and the Sages based them on the laws of the offerings.

https://en.wikipedia.org/wiki/Relative_hour_(Jewish_law)

Relative hour (Hebrew singular: shaʿah zǝmanit / שעה זמנית; plural: shaʿot - zǝmaniyot / שעות זמניות), sometimes called halachic hour, seasonal hour and variable hour, is a term used in rabbinic Jewish law that assigns 12 hours to each day and 12 hours to each night, all throughout the year.

A relative hour has no fixed radical, but changes with the length of each day - depending on summer (when the days are long and the nights are short), and on winter (when the days are short and the nights are long). Even so, in all seasons a day is always divided into 12 hours, and a night is always divided into 12 hours, which inevitably makes for a longer hour or a shorter hour. All of the hours mentioned by the Sages in either the Mishnah or Talmud, or in other rabbinic writings, refer strictly to relative hours.

Another feature of this ancient practice is that, unlike the standard modern 12-hour clock that assigns 12 o'clock pm for noon time, in the ancient Jewish tradition noon time was always the sixth hour of the day, whereas the first hour began with the break of dawn, by most exponents of Jewish law, and with sunrise by the Vilna Gaon and Rabbi Hai Gaon. 12:o'clock am (midnight) was also the sixth hour of the night, whereas the first hour of the night began when the first three stars appeared in the night sky.