It is stated in Masekhet Soferim, chapter nineteen (halacha 9): On Rosh Chodesh, the groups of elders, and of the ballutin (great men), and of the students would sit from the time of mincha and onwards, until the sun would set. And one must say in the blessing over the wine: Borei pri hagafen. Blessed are You, Hashem our G-d, King of the universe, Who in the circle raised His seekers, taught them and instructed them in times, good months, the moon, a complete white light, from which He appointed the understanding ones, the arrangers of seasons; our Rock balanced the ends of moments, through which He established those months and festivals. As it is written: "He made the moon for festivals, the sun knows its coming." And he says: "For as the new heavens..." and concludes: "Blessed are You, Hashem, Who sanctifies Israel and the Rashei Chodashim." And he says: "Give thanks to Hashem for He is good. On this day in Jerusalem may we all be glad and joyful, may Elijah the prophet quickly come to us, may the King Messiah sprout in our days, and in the building of the Beit HaMikdash may joys increase." And the people shall answer and say "Amen! May good tidings increase in Israel, may good days increase in Israel, may students of Torah increase in Israel! The month is sanctified, sanctified on Rosh Chodesh! Sanctified in its time, sanctified in its intercalation! Sanctified in the Torah, sanctified in the halacha! Sanctified in the upper realms, sanctified in the lower realms! Sanctified in the Land of Israel, sanctified in Zion! Sanctified in Jerusalem, sanctified in all places of Israel! Sanctified by the mouths of our teachers, sanctified in the house of assembly! Give thanks to Hashem for He is good, and may you all be blessed, blessed..." Thus far his words. And it appears that this was at the time of the sanctification of the month; happy is the eye that saw all these. And may Hashem merit us to see all these quickly in our days, Amen.
איתא במסכת סופרים פרק תשעה עשר (הלכה ט): בראש חודש ישבו החבורות של זקנים, ושל בלווטין (גדולים), ושל תלמידים מן המנחה ולמעלה, עד שתשקע החמה. וצריך לומר בברכת היין: בורא פרי הגפן. ברוך אתה ה' אלקינו מלך העולם, אשר בעגולה גידל דורשיו הורם ולימדם זמנים, חודשים טובים ירח כליל לבנה מינה נבונים, סודרי עיתים פילס צורינו קיצי רגעים, שבם תיקן אותן חודשים ומועדים. דכתיב: "עשה ירח למועדים, שמש ידע מבואו". ואומר: "כי כאשר השמים החדשים…" וחותם: "ברוך אתה ה' מקדש ישראל וראשי חודשים". ואומר: "הודו לד' כי טוב. כהיום הזה בירושלים ששים ושמחים כולנו, אליהו הנביא במהרה יבוא אלינו, המלך המשיח יצמיח בימינו, ובבנין בית המקדש ירבו שמחות." ויענו העם ואמרו "אמן! ירבו בשורות טובות בישראל, ירבו ימים טובים בישראל, ירבו תלמידי תורה בישראל! מקודש החודש, מקודש בראש חודש! מקודש בזמנו, מקודש בעיבורו! מקודש בתורה, מקודש בהלכה! מקודש בעליונים, מקודש בתחתונים! מקודש בארץ ישראל, מקודש בציון! מקודש בירושלים, מקודש בכל מקומות ישראל! מקודש בפי רבותינו, מקודש בבית הוועד! הודו לד' כי טוב, וכולכם ברוכים ברוכים…"עד כאן לשונו. ונראה שזה היה בשעת קידוש החודש, אשרי עין ראתה כל אלה. וד' יזכינו לראות כל אלה במהרה בימינו, אמן.