שולחן ערוך, יורה דעה שמ״ז
Shulchan Arukh, Yoreh De'ah 347
שלא לעורר על מתו שלשים יום לפני הרגל. ובו ג' סעיפים:
מי שמת לו מת לפני שלשים יום הסמוכים לרגל לא יספדנו משיכנסו שלשים יום הסמוכים לרגל ואפי' יש לו הספד בלא זה כגון שמת לו מת בתוך שלשים שמותר לספדו ואפילו מת ערב הרגל אסור להספיד עמו על המת שמת לו לפני שלשים יום קודם המועד:
מי שמת לו מת לפני שלשים יום הסמוכים לרגל לא יספדנו משיכנסו שלשים יום הסמוכים לרגל ואפי' יש לו הספד בלא זה כגון שמת לו מת בתוך שלשים שמותר לספדו ואפילו מת ערב הרגל אסור להספיד עמו על המת שמת לו לפני שלשים יום קודם המועד:
One who suffered a bereavement prior to thirty days before a Festival, should not make a lamentation for him from [the time] that the thirty days before the Festival begin. [This applies] even if he has to make a lamentation [in any case] without this, e.g., [if] he suffered [another] bereavement within the thirty days [of the Festival], for whom it is permissible to make a lamentation, even if he died on the eve of the Festival, [nevertheless], it is forbidden to make a lamentation along with him for the bereavement that he suffered before thirty days prior to the festive season.
מי שבאה לו שמועה בתוך שלשים יום קודם הרגל נראה לי שמותר לספדו אף על פי שהיא רחוקה:
One who received tidings [of death] within thirty days before the Festival, it seems to me that it is permissible to make a lamentation for him, although it is [already now] distant [tidings].
מה שאנו נוהגין בתשלום השנה לקונן ולהזכיר נשמות נראה לי שאינו בכלל זה ומותר לעשותו סמוך לרגל:
Our accepted practice upon completion of the [first] year to bewail and to memorialize the souls [of the dead], seems to me, is not included in this principle, and it is permissible to do so close to the Festival.
Ashlei Ravrevei: Shulchan Aruch Yoreh Deah, Lemberg, 1888 (Public Domain) · Code of Hebrew Law by Chaim N. Denburg, Montreal, 1955 (CC-BY) · 3 se'ifim