Save "Simchat Torah- Where does it come from?"
Simchat Torah- Where does it come from?
The mitzvah of Torah reading was based on the Biblical commandment of Hakhel, by which once every 7 years the entire people was to be gathered to hear Devarim read to them. Traditionally, the Hakhel reading was performed by the King. Under Ezra, Torah reading became more frequent and the congregation themselves substituted for the King's role.
(י) וַיְצַ֥ו מֹשֶׁ֖ה אוֹתָ֣ם לֵאמֹ֑ר מִקֵּ֣ץ ׀ שֶׁ֣בַע שָׁנִ֗ים בְּמֹעֵ֛ד שְׁנַ֥ת הַשְּׁמִטָּ֖ה בְּחַ֥ג הַסֻּכּֽוֹת׃ (יא) בְּב֣וֹא כׇל־יִשְׂרָאֵ֗ל לֵֽרָאוֹת֙ אֶת־פְּנֵי֙ ה' אֱלֹקֶ֔יךָ בַּמָּק֖וֹם אֲשֶׁ֣ר יִבְחָ֑ר תִּקְרָ֞א אֶת־הַתּוֹרָ֥ה הַזֹּ֛את נֶ֥גֶד כׇּל־יִשְׂרָאֵ֖ל בְּאׇזְנֵיהֶֽם׃ (יב) הַקְהֵ֣ל אֶת־הָעָ֗ם הָֽאֲנָשִׁ֤ים וְהַנָּשִׁים֙ וְהַטַּ֔ף וְגֵרְךָ֖ אֲשֶׁ֣ר בִּשְׁעָרֶ֑יךָ לְמַ֨עַן יִשְׁמְע֜וּ וּלְמַ֣עַן יִלְמְד֗וּ וְיָֽרְאוּ֙ אֶת־ה' אֱלֹקֵיכֶ֔ם וְשָֽׁמְר֣וּ לַעֲשׂ֔וֹת אֶת־כׇּל־דִּבְרֵ֖י הַתּוֹרָ֥ה הַזֹּֽאת׃ (יג) וּבְנֵיהֶ֞ם אֲשֶׁ֣ר לֹא־יָדְע֗וּ יִשְׁמְעוּ֙ וְלָ֣מְד֔וּ לְיִרְאָ֖ה אֶת־ה' אֱלֹקֵיכֶ֑ם כׇּל־הַיָּמִ֗ים אֲשֶׁ֨ר אַתֶּ֤ם חַיִּים֙ עַל־הָ֣אֲדָמָ֔ה אֲשֶׁ֨ר אַתֶּ֜ם עֹבְרִ֧ים אֶת־הַיַּרְדֵּ֛ן שָׁ֖מָּה לְרִשְׁתָּֽהּ׃ {פ}
(10) And Moses instructed them as follows: Every seventh year, the year set for remission, at the Feast of Booths, (11) when all Israel comes to appear before the LORD your God in the place that He will choose, you shall read this Teaching aloud in the presence of all Israel. (12) Gather the people—men, women, children, and the strangers in your communities—that they may hear and so learn to revere the LORD your God and to observe faithfully every word of this Teaching. (13) Their children, too, who have not had the experience, shall hear and learn to revere the LORD your God as long as they live in the land that you are about to cross the Jordan to possess.
(א) וַיֵּאָסְפ֤וּ כׇל־הָעָם֙ כְּאִ֣ישׁ אֶחָ֔ד אֶל־הָ֣רְח֔וֹב אֲשֶׁ֖ר לִפְנֵ֣י שַֽׁעַר־הַמָּ֑יִם וַיֹּֽאמְרוּ֙ לְעֶזְרָ֣א הַסֹּפֵ֔ר לְהָבִ֗יא אֶת־סֵ֙פֶר֙ תּוֹרַ֣ת מֹשֶׁ֔ה אֲשֶׁר־צִוָּ֥ה ה' אֶת־יִשְׂרָאֵֽל׃ (ב) וַיָּבִ֣יא עֶזְרָ֣א הַ֠כֹּהֵ֠ן אֶֽת־הַתּוֹרָ֞ה לִפְנֵ֤י הַקָּהָל֙ מֵאִ֣ישׁ וְעַד־אִשָּׁ֔ה וְכֹ֖ל מֵבִ֣ין לִשְׁמֹ֑עַ בְּי֥וֹם אֶחָ֖ד לַחֹ֥דֶשׁ הַשְּׁבִיעִֽי׃ (ג) וַיִּקְרָא־בוֹ֩ לִפְנֵ֨י הָרְח֜וֹב אֲשֶׁ֣ר ׀ לִפְנֵ֣י שַֽׁעַר־הַמַּ֗יִם מִן־הָאוֹר֙ עַד־מַחֲצִ֣ית הַיּ֔וֹם נֶ֛גֶד הָאֲנָשִׁ֥ים וְהַנָּשִׁ֖ים וְהַמְּבִינִ֑ים וְאׇזְנֵ֥י כׇל־הָעָ֖ם אֶל־סֵ֥פֶר הַתּוֹרָֽה׃ (ד) וַֽיַּעֲמֹ֞ד עֶזְרָ֣א הַסֹּפֵ֗ר עַֽל־מִגְדַּל־עֵץ֮ אֲשֶׁ֣ר עָשׂ֣וּ לַדָּבָר֒ וַיַּֽעֲמֹ֣ד אֶצְל֡וֹ מַתִּתְיָ֡ה וְשֶׁ֡מַע וַ֠עֲנָיָ֠ה וְאוּרִיָּ֧ה וְחִלְקִיָּ֛ה וּמַעֲשֵׂיָ֖ה עַל־יְמִינ֑וֹ וּמִשְּׂמֹאל֗וֹ פְּ֠דָיָ֠ה וּמִֽישָׁאֵ֧ל וּמַלְכִּיָּ֛ה וְחָשֻׁ֥ם וְחַשְׁבַּדָּ֖נָה זְכַרְיָ֥ה מְשֻׁלָּֽם׃ {פ}
(ה) וַיִּפְתַּ֨ח עֶזְרָ֤א הַסֵּ֙פֶר֙ לְעֵינֵ֣י כׇל־הָעָ֔ם כִּֽי־מֵעַ֥ל כׇּל־הָעָ֖ם הָיָ֑ה וּכְפִתְח֖וֹ עָֽמְד֥וּ כׇל־הָעָֽם׃ (ו) וַיְבָ֣רֶךְ עֶזְרָ֔א אֶת־ה' הָאֱלֹקִ֖ים הַגָּד֑וֹל וַיַּֽעֲנ֨וּ כׇל־הָעָ֜ם אָמֵ֤ן ׀ אָמֵן֙ בְּמֹ֣עַל יְדֵיהֶ֔ם וַיִּקְּד֧וּ וַיִּֽשְׁתַּחֲו֛וּ לַה' אַפַּ֥יִם אָֽרְצָה׃ (ז) וְיֵשׁ֡וּעַ וּבָנִ֡י וְשֵׁרֵ֥בְיָ֣ה ׀ יָמִ֡ין עַקּ֡וּב שַׁבְּתַ֣י ׀ הֽוֹדִיָּ֡ה מַעֲשֵׂיָ֡ה קְלִיטָ֣א עֲזַרְיָה֩ יוֹזָבָ֨ד חָנָ֤ן פְּלָאיָה֙ וְהַלְוִיִּ֔ם מְבִינִ֥ים אֶת־הָעָ֖ם לַתּוֹרָ֑ה וְהָעָ֖ם עַל־עׇמְדָֽם׃ (ח) וַֽיִּקְרְא֥וּ בַסֵּ֛פֶר בְּתוֹרַ֥ת הָאֱלֹקִ֖ים מְפֹרָ֑שׁ וְשׂ֣וֹם שֶׂ֔כֶל וַיָּבִ֖ינוּ בַּמִּקְרָֽא׃ {פ}
(ט) וַיֹּ֣אמֶר נְחֶמְיָ֣ה ה֣וּא הַתִּרְשָׁ֡תָא וְעֶזְרָ֣א הַכֹּהֵ֣ן ׀ הַסֹּפֵ֡ר וְהַלְוִיִּם֩ הַמְּבִינִ֨ים אֶת־הָעָ֜ם לְכׇל־הָעָ֗ם הַיּ֤וֹם קָדֹֽשׁ־הוּא֙ לַה' אֱלֹקֵיכֶ֔ם אַל־תִּֽתְאַבְּל֖וּ וְאַל־תִּבְכּ֑וּ כִּ֤י בוֹכִים֙ כׇּל־הָעָ֔ם כְּשׇׁמְעָ֖ם אֶת־דִּבְרֵ֥י הַתּוֹרָֽה׃ (י) וַיֹּ֣אמֶר לָהֶ֡ם לְכוּ֩ אִכְל֨וּ מַשְׁמַנִּ֜ים וּשְׁת֣וּ מַֽמְתַקִּ֗ים וְשִׁלְח֤וּ מָנוֹת֙ לְאֵ֣ין נָכ֣וֹן ל֔וֹ כִּֽי־קָד֥וֹשׁ הַיּ֖וֹם לַאֲדֹנֵ֑ינוּ וְאַל־תֵּ֣עָצֵ֔בוּ כִּֽי־חֶדְוַ֥ת ה' הִ֥יא מָֽעֻזְּכֶֽם׃ (יא) וְהַלְוִיִּ֞ם מַחְשִׁ֤ים לְכׇל־הָעָם֙ לֵאמֹ֣ר הַ֔סּוּ כִּ֥י הַיּ֖וֹם קָדֹ֑שׁ וְאַל־תֵּעָצֵֽבוּ׃ (יב) וַיֵּלְכ֨וּ כׇל־הָעָ֜ם לֶאֱכֹ֤ל וְלִשְׁתּוֹת֙ וּלְשַׁלַּ֣ח מָנ֔וֹת וְלַעֲשׂ֖וֹת שִׂמְחָ֣ה גְדוֹלָ֑ה כִּ֤י הֵבִ֙ינוּ֙ בַּדְּבָרִ֔ים אֲשֶׁ֥ר הוֹדִ֖יעוּ לָהֶֽם׃ {פ}
(יג) וּבַיּ֣וֹם הַשֵּׁנִ֡י נֶאֶסְפוּ֩ רָאשֵׁ֨י הָאָב֜וֹת לְכׇל־הָעָ֗ם הַכֹּֽהֲנִים֙ וְהַלְוִיִּ֔ם אֶל־עֶזְרָ֖א הַסֹּפֵ֑ר וּלְהַשְׂכִּ֖יל אֶל־דִּבְרֵ֥י הַתּוֹרָֽה׃ (יד) וַֽיִּמְצְא֖וּ כָּת֣וּב בַּתּוֹרָ֑ה אֲשֶׁ֨ר צִוָּ֤ה ה' בְּיַד־מֹשֶׁ֔ה אֲשֶׁר֩ יֵשְׁב֨וּ בְנֵֽי־יִשְׂרָאֵ֧ל בַּסֻּכּ֛וֹת בֶּחָ֖ג בַּחֹ֥דֶשׁ הַשְּׁבִיעִֽי׃ (טו) וַאֲשֶׁ֣ר יַשְׁמִ֗יעוּ וְיַעֲבִ֨ירוּ ק֥וֹל בְּכׇל־עָרֵיהֶם֮ וּבִירוּשָׁלַ֣͏ִם לֵאמֹר֒ צְא֣וּ הָהָ֗ר וְהָבִ֙יאוּ֙ עֲלֵי־זַ֙יִת֙ וַעֲלֵי־עֵ֣ץ שֶׁ֔מֶן וַעֲלֵ֤י הֲדַס֙ וַעֲלֵ֣י תְמָרִ֔ים וַעֲלֵ֖י עֵ֣ץ עָבֹ֑ת לַעֲשֹׂ֥ת סֻכֹּ֖ת כַּכָּתֽוּב׃ {ס} (טז) וַיֵּצְא֣וּ הָעָם֮ וַיָּבִ֒יאוּ֒ וַיַּעֲשׂוּ֩ לָהֶ֨ם סֻכּ֜וֹת אִ֤ישׁ עַל־גַּגּוֹ֙ וּבְחַצְרֹ֣תֵיהֶ֔ם וּבְחַצְר֖וֹת בֵּ֣ית הָאֱלֹקִ֑ים וּבִרְחוֹב֙ שַׁ֣עַר הַמַּ֔יִם וּבִרְח֖וֹב שַׁ֥עַר אֶפְרָֽיִם׃ {ס} (יז) וַיַּֽעֲשׂ֣וּ כׇֽל־הַ֠קָּהָ֠ל הַשָּׁבִ֨ים מִן־הַשְּׁבִ֥י ׀ סֻכּוֹת֮ וַיֵּשְׁב֣וּ בַסֻּכּוֹת֒ כִּ֣י לֹֽא־עָשׂ֡וּ מִימֵי֩ יֵשׁ֨וּעַ בִּן־נ֥וּן כֵּן֙ בְּנֵ֣י יִשְׂרָאֵ֔ל עַ֖ד הַיּ֣וֹם הַה֑וּא וַתְּהִ֥י שִׂמְחָ֖ה גְּדוֹלָ֥ה מְאֹֽד׃ (יח) וַ֠יִּקְרָ֠א בְּסֵ֨פֶר תּוֹרַ֤ת הָאֱלֹקִים֙ י֣וֹם ׀ בְּי֔וֹם מִן־הַיּוֹם֙ הָֽרִאשׁ֔וֹן עַ֖ד הַיּ֣וֹם הָאַחֲר֑וֹן וַיַּֽעֲשׂוּ־חָג֙ שִׁבְעַ֣ת יָמִ֔ים וּבַיּ֧וֹם הַשְּׁמִינִ֛י עֲצֶ֖רֶת כַּמִּשְׁפָּֽט׃ {פ}
(1) the entire people assembled as one man in the square before the Water Gate, and they asked Ezra the scribe to bring the scroll of the Teaching of Moses with which the LORD had charged Israel. (2) On the first day of the seventh month, Ezra the priest brought the Teaching before the congregation, men and women and all who could listen with understanding. (3) He read from it, facing the square before the Water Gate, from the first light until midday, to the men and the women and those who could understand; the ears of all the people were given to the scroll of the Teaching. (4) Ezra the scribe stood upon a wooden tower made for the purpose, and beside him stood Mattithiah, Shema, Anaiah, Uriah, Hilkiah, and Maaseiah at his right, and at his left Pedaiah, Mishael, Malchijah, Hashum, Hashbaddanah, Zechariah, Meshullam. (5) Ezra opened the scroll in the sight of all the people, for he was above all the people; as he opened it, all the people stood up. (6) Ezra blessed the LORD, the great God, and all the people answered, “Amen, Amen,” with hands upraised. Then they bowed their heads and prostrated themselves before the LORD with their faces to the ground. (7) Jeshua, Bani, Sherebiah, Jamin, Akkub, Shabbethai, Hodiah, Maaseiah, Kelita, Azariah, Jozabad, Hanan, Pelaiah, and the Levites explained the Teaching to the people, while the people stood in their places. (8) They read from the scroll of the Teaching of God, translating it and giving the sense; so they understood the reading. (9) Nehemiah the Tirshatha, Ezra the priest and scribe, and the Levites who were explaining to the people said to all the people, “This day is holy to the LORD your God: you must not mourn or weep,” for all the people were weeping as they listened to the words of the Teaching. (10) He further said to them, “Go, eat choice foods and drink sweet drinks and send portions to whoever has nothing prepared, for the day is holy to our Lord. Do not be sad, for your rejoicing in the LORD is the source of your strength.” (11) The Levites were quieting the people, saying, “Hush, for the day is holy; do not be sad.” (12) Then all the people went to eat and drink and send portions and make great merriment, for they understood the things they were told. (13) On the second day, the heads of the clans of all the people and the priests and Levites gathered to Ezra the scribe to study the words of the Teaching. (14) They found written in the Teaching that the LORD had commanded Moses that the Israelites must dwell in booths during the festival of the seventh month, (15) and that they must announce and proclaim throughout all their towns and Jerusalem as follows, “Go out to the mountains and bring leafy branches of olive trees, pine trees, myrtles, palms and [other] leafy-a trees to make booths, as it is written.” (16) So the people went out and brought them, and made themselves booths on their roofs, in their courtyards, in the courtyards of the House of God, in the square of the Water Gate and in the square of the Ephraim Gate. (17) The whole community that returned from the captivity made booths and dwelt in the booths—the Israelites had not done so from the days of Joshua son of Nun to that day—and there was very great rejoicing. (18) He read from the scroll of the Teaching of God each day, from the first to the last day. They celebrated the festival seven days, and there was a solemn gathering on the eighth, as prescribed.
Ezra initiated the modern custom of reading thrice weekly in the synagogue (see below)
עשרה תקנות תיקן עזרא שקורין במנחה בשבת וקורין בשני ובחמישי ודנין בשני ובחמישי ומכבסים בחמישי בשבת ואוכלין שום בערב שבת ושתהא אשה משכמת ואופה ושתהא אשה חוגרת בסינר ושתהא אשה חופפת וטובלת ושיהו רוכלין מחזירין בעיירות ותיקן טבילה לבעלי קריין: שיהו קוראין במנחה בשבת משום יושבי קרנות: ושיהו קוראין בשני ובחמישי עזרא תיקן והא מעיקרא הוה מיתקנא דתניא (שמות טו, כב) וילכו שלשת ימים במדבר ולא מצאו מים דורשי רשומות אמרו אין מים אלא תורה שנאמר (ישעיהו נה, א) הוי כל צמא לכו למים כיון שהלכו שלשת ימים בלא תורה נלאו עמדו נביאים שביניהם ותיקנו להם שיהו קורין בשבת ומפסיקין באחד בשבת וקורין בשני ומפסיקין שלישי ורביעי וקורין בחמישי ומפסיקין ערב שבת כדי שלא ילינו ג' ימים בלא תורה מעיקרא תקנו חד גברא תלתא פסוקי אי נמי תלתא גברי תלתא פסוקי כנגד כהנים לוים וישראלים אתא הוא תיקן תלתא גברי ועשרה פסוקי כנגד עשרה בטלנין: ודנין בשני ובחמישי דשכיחי דאתו למקרא בסיפרא:

§ The Sages taught that Ezra the Scribe instituted ten ordinances: He instituted that communities read the Torah on Shabbat in the afternoon; and they also read the Torah on every Monday and Thursday; and the courts convene and judge every Monday and Thursday... The Gemara analyzes these ordinances, the first of which is that communities shall read the Torah on Shabbat afternoon. This Gemara explains that this ordinance was instituted due to those who sit idly on street corners, who do not attend the synagogue during the week. The Gemara discusses the second of Ezra’s ordinances: And that they should read the Torah on every Monday and Thursday. The Gemara asks: Did Ezra institute this practice? But it was instituted from the beginning, i.e., long before his time. As it is taught in a baraita with regard to the verse: “And Moses led Israel onward from the Red Sea, and they went out into the wilderness of Shur; and they went three days in the wilderness, and found no water” (Exodus 15:22). Those who interpret verses metaphorically said that water here is referring to nothing other than Torah, as it is stated metaphorically, concerning those who desire wisdom: “Ho, everyone who thirsts, come for water” (Isaiah 55:1). The baraita continues: The verse means that since the Jews traveled for three days without hearing any Torah they became weary, and therefore the prophets among them arose and instituted for them that they should read from the Torah each Shabbat, and pause on Sunday, and read again on Monday, and pause on Tuesday and Wednesday, and read again on Thursday, and pause on Shabbat eve, so they would not tarry three days without hearing the Torah. Evidently this practice predates Ezra. The Gemara answers: Initially they instituted that one man read three verses; or alternatively, that three men read three verses. Either way, the number three corresponds to the three types of Jews: Priests, Levites, and Israelites. Ezra later came and instituted that three men always read, and that ten verses altogether be read by them, corresponding to the ten idlers in a city, i.e., the ten men who are paid to spend their time dealing with synagogue and communal matters. The next ordinance of Ezra is: And the courts convene and judge every Monday and Thursday. The Gemara explains that the reason for this ordinance is that many people are found in a city on these days, as they come from the countryside for the reading of the holy book, the Torah, which is performed on Mondays and Thursdays, as stated above.

Triennial and Yearly Torah Cycles

הלכה א

הַמִּנְהָג הַפָּשׁוּט בְּכָל יִשְׂרָאל שֶׁמַּשְׁלִימִין אֶת הַתּוֹרָה בְּשָׁנָה אַחַת. מַתְחִילִין בְּשַׁבָּת שֶׁאַחַר חַג הַסֻּכּוֹת וְקוֹרִין בְּסֵדֶר (בראשית א:א) ״בְּרֵאשִׁית״. בַּשְּׁנִיָּה (בראשית ו:ט) ״אֵלֶּה תּוֹלְדֹת״. בַּשְּׁלִישִׁית (בראשית יב:א) ״וַיֹּאמֶר ה' אֶל אַבְרָם״. וְקוֹרְאִין וְהוֹלְכִין עַל הַסֵּדֶר הַזֶּה עַד שֶׁגּוֹמְרִין אֶת הַתּוֹרָה בְּחַג הַסֻּכּוֹת. וְיֵשׁ מִי שֶׁמַּשְׁלִים אֶת הַתּוֹרָה בְּשָׁלֹשׁ שָׁנִים וְאֵינוֹ מִנְהָג פָּשׁוּט.

הלכה ב

עֶזְרָא תִּקֵּן לָהֶם לְיִשְׂרָאֵל שֶׁיְּהוּ קוֹרִין קְלָלוֹת שֶׁבְּסֵפֶר וַיִּקְרָא קֹדֶם עֲצֶרֶת וְשֶׁבְּמִשְׁנֵה תּוֹרָה קֹדֶם רֹאשׁ הַשָּׁנָה. וְהַמִּנְהָג הַפָּשׁוּט שֶׁיְּהוּ קוֹרְאִין (במדבר א:א) ״בְּמִדְבַּר סִינַי״ קֹדֶם עֲצֶרֶת, (דברים ג:כג) ״וָאֶתְחַנַּן״ אַחַר תִּשְׁעָה בְּאָב, (דברים כט:ט) ״אַתֶּם נִצָּבִים״ קֹדֶם רֹאשׁ הַשָּׁנָה, (ויקרא ו:ב) ״צַו אֶת אַהֲרֹן״ קֹדֶם הַפֶּסַח בְּשָׁנָה פְּשׁוּטָה. לְפִיכָךְ יֵשׁ שַׁבָּתוֹת שֶׁקּוֹרִין שַׁחֲרִית שְׁנֵי סְדָרִין כְּגוֹן (ויקרא יב:ב) ״אִשָּׁה כִּי תַזְרִיעַ״ וְ(ויקרא יד:ב) ״זֹאת תִּהְיֶה תּוֹרַת הַמְּצֹרָע״. (ויקרא כו:ג) ״אִם בְּחֻקֹּתַי״ עִם (ויקרא כה:א) ״בְּהַר סִינַי״ וְכַיּוֹצֵא בָּהֶן כְּדֵי שֶׁיַּשְׁלִימוּ בְּשָׁנָה וְיִקְרְאוּ אוֹתָן הַסְּדָרִים בְּעוֹנָתָן.

Halacha 1

The custom prevailing through Yisrael is that we complete [reading] the Torah within one year. We begin on the Shabbat after Sukkot by reading the portion “In the Beginning” (Gen. 1:1). On the second Shabbat, “These are the generations of Noah” (Gen. 6:9); on the third, “And God said to Avraham" (Gen. 12:1); and we continue on reading in this order until we complete the Torah on Sukkot. There are some who complete the Torah every three years, but this is not the prevalent custom.

Halacha 2

Ezra instituted for Yisrael that the portion containing the Curses in the book of Vayikra (26:3-end of book) should be read before Shavuot; and those in Devarim (26:1-29:8) before Rosh HaShana. The prevalent custom is to read the portion Bemidbar Sinai (Num. 1:1-4:20) before Shavuot; Va’etchanan (Deut. 3:23-7:11) after the Tisha B’Av; Atem Nitzavim (Deut. 29:9-30:20) before Rosh HaShana; [and] Tzav et Aharon (Lev. 6:1-8:36) before Pesach in an ordinary year (of twelve months). Hence, on some Shabbats, two portions are read during the morning service, for example, Isha Ki Tazria (Lev. 12:1-13:59) and Vezot Tiheyeh Torat HaMetzora (ibid. 14:1-15:33); Bechukotai (ibid. 26:3-end of book) and Behar Sinai (ibid. 25:1-26:2) and so on; the purpose being to ensure that the reading of the Torah shall be completed in one year and that the portions above mentioned shall be read at their appointed periods.

אֶלָּא לְמַאן דְּאָמַר צַו אֶת קׇרְבָּנִי מִי מִתְרְמֵי בְּהָהוּא זִימְנָא אִין לִבְנֵי מַעְרְבָא דְּמַסְּקִי לִדְאוֹרָיְיתָא בִּתְלָת שְׁנִין

However, according to the one who said that the portion of “Command the children of Israel, and say to them, My offering” is read as Shekalim, does that portion ever occur at that time of the year? That portion usually occurs much later in the year, in the summer. The Gemara answers: Yes, it sometimes occurs that this portion is read during the beginning of Adar, for the people of the West, i.e., Eretz Yisrael, who complete the cycle of reading the Torah not in one year but in three years.

Benjamin of Tudela (1130-1173) was a medieval Jewish traveler who visited Europe, Asia, and Africa in the 12th century. His vivid descriptions of western Asia preceded those of Marco Polo by a hundred years.

מסעות בנימין, צ"ט

ושם (בקהיר) שני בתי כנסיות, אחת לאנשי ארץ ישראל ואחת לאנשי בבל 'כניסה אל עראקיין', ואינן נוהגים כולם מנהג אחד בפרשיות ובסדרים של תורה, כי אנשי בבל נוהגים לקרות בכל שבוע פרשה, כמו שעושין בספרד, ובכל שנה ושנה מסיימים את התורה, ואנשי ארץ ישראל אינם נוהגים כך, אבל עושים מכל פרשה ג' סדרים ומסיימים את התורה לסוף ג' שנים, ויש ביניהם מנהג ותקנה להתחבר כולן ולהתפלל ביחד ביום שמחת תורה וביום מתן תורה.

Benjamin of Tudela, Itineraries, 98

Two large synagogues are there [in Cairo], one belonging to the men of the land of Israel and one belonging to the men of the land of Babylon… the men of Babylon are accustomed to read a portion every week… the men of Israel do not do so, but divide each portion into three sections and finish the Torah at the end of three years. The two communities, however, have an established custom to unite and pray together on Simchat Torah and on Shavuot.

Celebrating the Completion of Torah

"וַיָּבוֹא יְרוּשָׁלָיִם וַיַּעֲמֹד לִפְנֵי אֲרוֹן בְּרִית ה' וַיַּעַל עֹלוֹת וַיַּעַשׂ שְׁלָמִים וַיַּעַשׂ מִשְׁתֶּה לְכָל עֲבָדָיו" (מלכים א ג:טו), אָמַר רַבִּי אֶלְעָזָר: מִכָּאן שֶׁעוֹשִׂין סְעוּדָה לְגָמְרָהּ שֶׁל תּוֹרָה.

“And [Shlomo] went to Jerusalem, stood before the Ark of the Covenant of God and offered burnt offerings and peace offerings... and he made a banquet for all his servants” (Kings I 3:15). Rabbi Elazar said: From here we learn that one makes a feast for the completion of the Torah.

Historical Origins of Simchat Torah
The first mention of Yom Tov Sheni of Shemini Atzeret by the name “Simchat Torah” can be found in the late 11th century French work, Machzor Vitry, by a student of Rashi, R. Simcha b. Shmuel:

יום תשיעי ספק שמיני, קורין וזאת הברכה, כדי לסמוך שמחת התורה שזכו לסיימה לשמחת החג. שכן נכפלה שמחה במקרא בשמיני עצרת, לפי ששמחת החג מרובה. ועוד כדי לסמוך ברכת המלך לברכת משה. שביום טוב האחרון היתה ברכת המלך כמו שאמרו חכמים שהוא חלוק מן החג שזקוק לברכה בפני עצמה.

On the ninth day of Sukkot (which is safek shemini), we read Vezot HaBeracha, in order to align the Simchat Torah – which we have merited to complete – with the Simchat HaChag. For the verse uses the term “Simcha” twice in discussing Shemini Atzeret, since the happiness of the festival is abundant. Further, [we read this portion] so as to align the “Blessing of the King” with the Blessing of Moshe. As our wise men say, the final day of Yom Tov is the King’s Blessing, which is set apart from the rest of the festival for its’ own blessing.

More explanation appears a few years later in the late 12th-century Spanish work, Sefer HaManhig, by R. Avraham b. Natan 'HaYarchi':

ספר המנהיג, סוכה ע' תיג

וביום שמיני שהוא תשיעי ספק שמיני עצרת קורין כל ישראל וזאת הברכה, לפי ששלמה המלך ע"ה בירך את ישראל בשמיני של חג, שנאמר (מלכים א ח:יד) "ויברך את כל קהל ישראל" לפיכך אנו קורין בתשיעי ספק שמיני וזאת הברכה אשר בירך משה ע"ה את ישראל. ולפיכך היום שמחת תורה... ושבת שאחרי ר"ה קורין האזינו להעיד על ישראל ולהזהיר על התשובה, וזאת הברכה בשמחת תורה שכתוב בו בשמיני עצרת והיית אך שמח, ודרשו בו (חגיגה ח/א) "לרבות כל מיני שמחות לשמחה" לפי שהוא תשלום כל קורבנות החג...

Sefer HaManhig, Sukkah 413

On the ninth day of Sukkot (which is safek Shemini Atzeret), all of Yisrael read Vezot HaBeracha, for King Shlomo blessed Yisrael on the eighth day of the festival, as it says (Kings I 8:14), “And he blessed the entire congregation of Yisrael”. Therefore, we read on this day Vezot HaBeracha, wherein Moshe blessed Yisrael. Therefore, the day is Simchat Torah… and on the Shabbat following Rosh HaShana, we read Ha’azinu to testify on Yisrael and caution about Teshuva; and [we read] Vezot HaBeracha on Simchat Torah about which the Torah writes for Shemini Atzeret “a finale, and you shall be only happy”, about which our wise men expound (Chagiga 8a): “This comes to include all forms of rejoicing” for this happiness completes all the offerings of the festival…

The customs of Simchat Torah found their way into the Halachic literature with the publication of the Arba'ah Turim, known as the Tur, by Rabbi Yaakov ben Asher (1269-1343):

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

And we call it Simchat Torah, because we complete the Torah on it, and it is fitting to rejoice for its’ completion. And we are accustomed to immediately begin Bereishit, so that there shouldn’t be an opening for the Satan to prosecute by saying “they have finished and won’t start again!” And we read numerous liturgical poems, such as “For the sake of our fathers”. And there are some places where they take out all the Torah scrolls and recite different poems over each one – and each place should do according to its’ custom. And in Ashkenaz, the custom is that the one who reads and concludes [the Torah reading] make pledges and donations, and call to all their friends and make a feast, celebration and Yom Tov for the completion and renewal of the Torah…

The first explanation of the name "Simchat Torah" can be found in the early 15th century work, Sefer HaMinhagim, by R. Isaac Tirna, in the Hagahot section:

ספר המנהגים, הגהות

למה נקרא שמחת תורה? על שבשעה שסיימו ישראל את התורה הלך השטן לפני הקב"ה לקטרג עליהם ואומר: ישראל לומדים תורה ואין מסיימים אותה, כשמסיימים אותה אומר לו הקב"ה: הלוא סיימוה. והוא משיב: אף על פי שסיימוה אין מתחילין אותה. וכשמתחילין אותה ע"י חתן בראשית, משיב לו הקב"ה: הלוא התחילוה. נמצא שאין יכול לקטרג, על שם זה נקרא 'שמחת תורה'.

Sefer HaMinhagim, Hagahot

Why is it called Simchat Torah? Since before Yisrael completed the Torah, the Satan went to the Holy One to prosecute against them and said: Yisrael learns Torah but doesn’t complete it. So, when Yisrael completes it, the Holy One says to him, “Behold, they have completed it!” And the Satan replies, “Even if they’ve finished it, they won’t begin again!” Then, once they begin with Chatan Bereishit, the Holy One replies to him, “Look! They’ve begun again!” It emerges that there is nothing to prosecute against – and for this reason it is called Simchat Torah.

The Abravanel presents a unique approach to the origins of Simchat Torah:

וכבר ראיתי כתוב שבכל שנה ושנה היה הכהן הגדול, או הנביא, או השופט, או גדול הדור, קורא בחג הסוכות חלק מן התורה, ושהיה משלים ספר בראשית ואלה שמות ויקרא ובמדבר סיני בשש שנים... ובשנה השביעית היה המלך מסיים התורה, ומכאן נשאר המנהג בימינו, שהיום השמיני חג העצרת האחרון, נקרא יום שמחת תורה, בו אנו משלימים את התורה, עומד הגדול שבקהל ומסיים אותה... לדמיין מעשה המלך בזמן ההוא.

I’ve seen written that each year, the Kohen Gadol – or the prophet, or Judge, or Gadol HaDor – would [publicly] read a portion of the Torah on Sukkot, and would complete Bereishit through Bamidbar within six years; and in the seventh year, the king would complete the Torah… And it is for this reason that the custom remains in our days that the final [second] day of Shemini Atzeret is called Simchat Torah, on which we complete the Torah, and where a great person within the community goes up to complete it… to be similar to the events of the king during that time.

The customs of Simchat Torah became enshrined in normative Halacha with their publication in the Shulchan Aruch:

(א) סדר יום שמחת תורה ובו סעיף אחד

הגה: וקורין יום טוב האחרון שמחת תורה לפי ששמחין ועושין בו סעודת משתה לגמרה של תורה... ועוד נהגו במדינות אלו להוציא בשמחת תורה ערבית ושחרית כל ספרי תורה שבהיכל ואומרים זמירות ותשבחות וכל מקום לפי מנהגו ועוד נהגו להקיף עם ספרי התורות הבימה שבבית הכנסת... והכל משום שמחה ונהגו עוד להרבות הקרואים לספר תורה... עוד נהגו לקרות כל הנערים לספר תורה..

Rama: This last day is referred to as Simchat Torah, because we rejoice and make a celebratory feast on that day to celebrate the completion of the Torah… We also have the custom in these lands… to remove all of the Torah scrolls in the ark and recite songs and praises… We also have the custom to encircle the bimah with the scrolls… all [of these customs are] out of joy. We also have the custom to call up many people to the Torah… we also call up all of the children.