סימן צז סעיף א
יֵֹש נוֹהֲגִין לְהִתְעַנּוֹת בְּעֶרֶב רֹאשׁ חֹדֶשׁ. וְאוֹמְרִים סֵדֶר יוֹם כִּפּוּר קָטָן, לְפִי שֶׁבּוֹ מִתְכַּפְּרִין כָּל הָעֲוֹנוֹת שֶׁל כָּל הַחֹדֶשׁ, דּוּמְיָּא דִּשְׂעִיר רֹאשׁ חֹדֶשׁ. וּכְמוֹ שֶׁאָנוּ אוֹמְרִים בְּמוּסָף, זְמַן כַּפָּרָה לְכָל תּוֹלְדוֹתָם. וְכָל מָקוֹם לְפִי מִנְהָגוֹ (עַיֵּן פרי חדש) (תי"ז).
Some people are accustomed to fast on Erev Rosh Chodesh1Mogein Avraham 417:3. Bach, Minhagim. and recite the order of Yom Kippur Kattan, for on this day we are forgiven for all the sins committed in the past month.2Pri Chodosh, Rav Moshe Kordaviro. It is, therefore, called Yom Kippur Kattan which means a small day of atonement. The order of prayers include various slichos and themes on repentance. It is likened to the Seir3The he-goat was brought as a sin-offering every Rosh Chodesh. [goat offering] of Rosh Chodesh, and as we say in the Mussaf service, "It is a time of atonement for all their generations." Each communifty should follow its own custom.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)