The Rambam · Sefer Zemanim
הלכות קידוש החודש ה׳Sanctification of the New Month 5
Chapter 5 of 19 in Sanctification of the New Month — 13 halachot
Halacha 1א׳
כָּל מַה שֶּׁאָמַרְנוּ מִקְּבִיעוֹת רֹאשׁ חֹדֶשׁ עַל הָרְאִיָּה וְעִבּוּר הַשָּׁנָה מִפְּנֵי הַזְּמַן אוֹ מִפְּנֵי הַצֹּרֶךְ. אֵין עוֹשִׂין אוֹתוֹ אֶלָּא סַנְהֶדְרִין שֶׁבְּאֶרֶץ יִשְׂרָאֵל אוֹ בֵּית דִּין הַסְּמוּכִים בְּאֶרֶץ יִשְׂרָאֵל שֶׁנָּתְנוּ לָהֶן הַסַּנְהֶדְרִין רְשׁוּת. שֶׁכָּךְ נֶאֱמַר לְמשֶׁה וּלְאַהֲרֹן (שמות יב ב) "הַחֹדֶשׁ הַזֶּה לָכֶם רֹאשׁ חֳדָשִׁים" וּמִפִּי הַשְּׁמוּעָה לָמְדוּ אִישׁ מֵאִישׁ מִמּשֶׁה רַבֵּנוּ שֶׁכָּךְ הוּא פֵּרוּשׁ הַדָּבָר עֵדוּת זוֹ תִּהְיֶה מְסוּרָה לָכֶם וּלְכָל הָעוֹמֵד אַחֲרֵיכֶם בִּמְקוֹמְכֶם. אֲבָל בִּזְמַן שֶׁאֵין שָׁם סַנְהֶדְרִין בְּאֶרֶץ יִשְׂרָאֵל אֵין קוֹבְעִין חֳדָשִׁים וְאֵין מְעַבְּרִין שָׁנִים אֶלָּא בְּחֶשְׁבּוֹן זֶה שֶׁאָנוּ מְחַשְּׁבִין בּוֹ הַיּוֹם:
Everything we have said about fixing the first of the month by sight and making the year a leap [year] because of the time or for necessity is only done by the Sanhedrin (High Court) that is in the land of Israel or an ordained court in the land of Israel that has been given permission from the Sanhedrin. For such was said to Moses and Aaron, (Exodus 12:2) "this month is for you the first month", and according to tradition they learnt, man from man from Moses our master, that such is the explanation of the matter: this testimony will be given over to you and to all who stand after you in your place. But at a time when the Sanhedrin doesn't exist in the land of Israel, we don't fix months and we don't make leap years except with the calculations that we calculate today.
Halacha 2ב׳
וְדָבָר זֶה הֲלָכָה לְמשֶׁה מִסִּינַי הוּא. שֶׁבִּזְמַן שֶׁיֵּשׁ סַנְהֶדְרִין קוֹבְעִין עַל פִּי הָרְאִיָּה וּבִזְמַן שֶׁאֵין שָׁם סַנְהֶדְרִין קוֹבְעִין עַל פִּי הַחֶשְׁבּוֹן הַזֶּה שֶׁאָנוּ מְחַשְּׁבִין בּוֹ הַיּוֹם וְאֵין נִזְקָקִין לִרְאִיָּה. אֶלָּא פְּעָמִים שֶׁיִּהְיֶה יוֹם שֶׁקּוֹבְעִין בּוֹ בְּחֶשְׁבּוֹן זֶה הוּא יוֹם הָרְאִיָּה אוֹ קוֹדֵם לוֹ בַּיּוֹם אוֹ אַחֲרָיו בַּיּוֹם. וְזֶה שֶׁיִּהְיֶה אַחַר הָרְאִיָּה בְּיוֹם פֶּלֶא הוּא וּבַאֲרָצוֹת שֶׁהֵן לְמַעֲרַב אֶרֶץ יִשְׂרָאֵל:
And this matter is a law of Moses from Sinai. That at a time that there is a Sanhedrin, we fix by the sighting, and when the Sanhedrin doesn't exist, we fix by this calculation that we calculate today and we don't relate to the sighting. Rather, sometimes the day we fix with this calculation will be the day of sighting, or a day before, or a day after. And that it will be after the sighting by a day is a wonder (i.e. very rare), and [this is so] in lands that are to the west of the land of Israel.
Halacha 3ג׳
וּמֵאֵימָתַי הִתְחִילוּ כָּל יִשְׂרָאֵל לְחַשֵּׁב בְּחֶשְׁבּוֹן זֶה. מִסּוֹף חַכְמֵי הַגְּמָרָא בְּעֵת שֶׁחָרְבָה אֶרֶץ יִשְׂרָאֵל וְלֹא נִשְׁאַר שָׁם בֵּית דִּין קָבוּעַ. אֲבָל בִּימֵי חַכְמֵי מִשְׁנָה וְכֵן בִּימֵי חַכְמֵי הַגְּמָרָא עַד יְמֵי אַבַּיֵּי וְרָבָא עַל קְבִיעַת אֶרֶץ יִשְׂרָאֵל הָיוּ סוֹמְכִין:
And from when did all of Israel start to calculate with this calculation? From the end of the sages of the Talmud, at the time that the land of Israel was made desolate and there didn't remain there a fixed court. But in the days of the sages of the Mishnah and similarly in the days of the sages of the Talmud, until the days of Abaye and Rava, they'd rely on the fixing of the land of Israel.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0