סימן קלח סעיף ז
יוֹם אַחֲרוֹן שֶל הֶחָג, שֶׁהוּא גַם כֵּן שְׁמִינִי עֲצֶרֶת, נִקְרָא שִׂמְחַת תּוֹרָה, לְפִי שֶׁמְּסַיְמִין בּוֹ אֶת הַתּוֹרָה וּשְׂמֵחִים בָּה. עַרְבִית, לְאַחַר הַתְּפִלָּה, עוֹשִׂין הַקָּפוֹת, וְאַחַר כָּךְ מַכְנִיסִין סִפְרֵי הַתּוֹרָה, וּמְשַׁיְרִין אֶחָד שֶׁקוֹרִין בּוֹ תְּלָתָא גַבְרֵי בְּפָרָשַׁת וְזֹאת הַבְּרָכָה. וְיֵשׁ מְקוֹמוֹת שֶׁנּוֹהֲגִין לִקְרוֹת בְפָרָשַׁת נְדָרִים. אַחַר קְרִיאַת הַתּוֹרָה, אוֹמְרִים חֲצִי קַדִּישׁ, וּמַכְנִיסִין אֶת סִפְרֵי הַתּוֹרָה וְאוֹמְרִים עָלֵינוּ.
The last day of Yom Tov, which is also Shemini Atzeres, is called Simchas Torah, because on this day we conclude [the reading of] the Torah, and we rejoice with it. In the evening, after Maariv, we make [seven] Hakafos [circuits] carrying the Sifrei Torah around the bimah, after which the Sifrei Torah are replaced in the Ark. We leave one Seifer Torah from which we read for three people3In some communities five people are called to read from the Torah. from the portion Vezos haberachah [This is the blessing], (Deuteronomy 33). In some communities it is customary to read the portions dealing with vows. After the reading of the Torah, the half-kaddish is said, the Seifer Torah is replaced in the Ark, and Aleinu is said.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)