Halachah · Shulchan Aruch

Shulchan Arukh, Yoreh De'ah 347/שולחן ערוך·יורה דעה שמ״ז

א
שלא לעורר על מתו שלשים יום לפני הרגל. ובו ג' סעיפים:
מי שמת לו מת לפני שלשים יום הסמוכים לרגל לא יספדנו משיכנסו שלשים יום הסמוכים לרגל ואפי' יש לו הספד בלא זה כגון שמת לו מת בתוך שלשים שמותר לספדו ואפילו מת ערב הרגל אסור להספיד עמו על המת שמת לו לפני שלשים יום קודם המועד:
1
One who suffered a bereavement prior to thirty days before1 a Festival, should not make a lamentation for him2 from [the time] that the thirty days before1 the Festival begin.3 [This applies] even if he has to make a lamentation4 [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,5 [nevertheless], it is forbidden to make a lamentation along with him6 for the bereavement that he suffered before thirty days prior to the festive season.7
ב
מי שבאה לו שמועה בתוך שלשים יום קודם הרגל נראה לי שמותר לספדו אף על פי שהיא רחוקה:
2
One who received tidings [of death] within thirty days before the Festival, it seems to me that it is permissible to make a lamentation8 for him,9 although it is [already now] distant [tidings].10
ג
מה שאנו נוהגין בתשלום השנה לקונן ולהזכיר נשמות נראה לי שאינו בכלל זה ומותר לעשותו סמוך לרגל:
3
Our accepted practice upon completion of the [first] year to bewail and to memorialize the souls [of the dead],11 seems to me, is not included in this principle,12 and it is permissible to do so close to the Festival.13