סימן קצה סעיף ח
עַל כָּל הַמֵּתִים, אִם לֹא שָׁמַע עַד לְאַחַר שְׁלֹשִׁים, אֵינוֹ קוֹרֵעַ. עַל אָבִיו וְאִמּוֹ, קוֹרֵעַ לְעוֹלָם בְּגָדָיו שֶׁהֵם עָלָיו בִּשְׁעַת שְׁמִיעָה. אַךְ הַבְּגָדִים שֶׁהוּא מַחֲלִיף אַחַר כָּךְ, אֵינוֹ צָרִיךְ לִקְרֹעַ.
For all relatives who pass away, if one did not hear of their death until after thirty days, he need not tear his garments. [However] for a father or mother, the mourner must always tear the garments that he is wearing at the time he hears of their death.7If he is informed of their death on Shabbos, he tears his garments at night after Shabbos is over. (see Shulchan Aruch 402:7) Nevertheless, if he changes his garments afterwards, he need not tear them.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)