Hold

וַיֹּ֤אמֶר יהוה אֶל־מֹשֶׁ֣ה וְאֶֽל־אַהֲרֹ֔ן בְּאֶ֥רֶץ מִצְרַ֖יִם לֵאמֹֽר׃

יהוה said to Moses and Aaron in the land of Egypt:

הַחֹ֧דֶשׁ הַזֶּ֛ה לָכֶ֖ם רֹ֣אשׁ חֳדָשִׁ֑ים רִאשׁ֥וֹן הוּא֙ לָכֶ֔ם לְחׇדְשֵׁ֖י הַשָּׁנָֽה׃

This month shall mark for you the beginning of the months; it shall be the first of the months of the year for you.

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

§ Rabbi Shimon ben Pazi raises a contradiction between two verses. It is written: “And God made the two great lights” (Genesis 1:16), and it is also written in the same verse: “The greater light to rule the day, and the lesser light to rule the night,” indicating that only one was great. Rabbi Shimon ben Pazi explains: When God first created the sun and the moon, they were equally bright. Then, the moon said before the Holy One, Blessed be He: Master of the Universe, is it possible for two kings to serve with one crown? One of us must be subservient to the other. God therefore said to her, i.e., the moon: If so, go and diminish yourself.

וְאָמַר רַבִּי אַחָא בַּר חֲנִינָא אָמַר רַב אַסִּי אָמַר רַבִּי יוֹחָנָן: עַד כַּמָּה מְבָרְכִין עַל הַחֹדֶשׁ? עַד שֶׁתִּתְמַלֵּא פְּגִימָתָהּ. וְכַמָּה? אָמַר רַב יַעֲקֹב בַּר אִידִי אָמַר רַב יְהוּדָה: עַד שִׁבְעָה. נְהַרְדָּעֵי אָמְרִי: עַד שִׁשָּׁה עָשָׂר.

§ Having cited a statement of Rabbi Aḥa bar Ḥanina, citing Rabbi Asi, citing Rabbi Yoḥanan, the Gemara cites another statement in his name: Rabbi Aḥa bar Ḥanina says that Rav Asi says that Rabbi Yoḥanan says: Until how many days into a new month may one recite a blessing on the month, i.e., Birkat HaLevana? Until the flaw of the moon is filled, when it no longer appears deficient. And until how many days is that? Rav Ya’akov bar Idi says that Rav Yehuda says: Until seven days of the month have passed. The Sages of Neharde’a say: Until sixteen days of the month have passed.

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

Moon blessing and its time - 4 subsections.
The one who sees the moon in its newness blesses "Who at Their Word created heavens, and at the breath of Their mouth all their hosts; a law and a time They gave unto them, that they would would not change their duty". Note: one should only sanctify the month at night, at the time that the moon shines and we benefit from its light (Agur).

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

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

And we benefit from its light - that is, at the time that its shining is visible over the earth. If the moon is covered with clouds, if the cloud is thin and weak so that the moon is seen from within it and it's possible to benefit from the moon, bless, and if the cloud is thick, do not bless. And if one begins to bless and then the moon is covered by clouds, finish the blessing, except in the case where one estimates that the moon will be covered by cloud in the middle of one's blessing, for in this case one shouldn't begin the blessing. And see Biur Halacha, and this is the ruling of there is a screen dividing one and the moon - the ruling is this too, like clouds, that if the screen is translucent so that one benefits from the moonlight through it, and it's possible to see things in the light of the moon, one can bless over it, and if the screen is thick and one does not benefit from the moonlight, do not bless over it, for that would be a blessing in vain, and see what we write at the end of the siman.

(כא) תחת הגג - אלא תחת כיפת השמים והטעם דקידוש הלבנה הוא כקבלת פני השכינה ואין זה דרך כבוד שיהא עומד תחת הגג לפיכך יוצאין מתחת הגג לרחוב כדרך שיוצאין לקראת מלכים ומ"מ כ"ז הוא רק לכתחלה אבל מי שחושש באיזה מיחוש שלא יוכל לצאת לחוץ אי נמי שהמקום אינו נקי או ששרוי בין העכו"ם יקדש בביתו דרך חלון או פתח הפתוח נגד הלבנה:

Under a roof - rather, under the dome of the heavens. And the reason is that sanctification of the moon is like greeting the face of the Shechina, and this is not honourable to stand under a roof. For this reason, we exit from under the roof to the street, the way one would go to greet kings. And in any case all of this is only lechatchila, but one who has any worry that they would be unable to go outside, such as the place being unclean or living amongst non-Jews, should sanctify in their home via a window or an open door by the moon.