שולחן ערוך, יורה דעה שצ״ב
Shulchan Arukh, Yoreh De'ah 392
אבל אסור כל ל' יום לישא אשה. ובו ג' סעיפים:
אסור לישא אשה כל ל' יום אפילו בלא סעודה ולאחר שלשים מותר אפי' על אביו ואמו ואפילו לעשות סעודה ומותר לקדש אשה אפילו ביום המיתה והוא שלא יעשה סעודה אלא אם כן עברו שלשים יום (וי"א דגם לארס אסור כל ל' יום) (טור והרא"ש והרמב"ן וכן עיקר):
אסור לישא אשה כל ל' יום אפילו בלא סעודה ולאחר שלשים מותר אפי' על אביו ואמו ואפילו לעשות סעודה ומותר לקדש אשה אפילו ביום המיתה והוא שלא יעשה סעודה אלא אם כן עברו שלשים יום (וי"א דגם לארס אסור כל ל' יום) (טור והרא"ש והרמב"ן וכן עיקר):
[The mourner] is forbidden to take a wife during the entire thirty days [of mourning], even without [making] a [wedding-] feast; and after thirty [days], he is permitted, even [if he is in mourning] for his father and mother, and he is even [permitted] to make a [wedding-] feast. However, he is permitted to betroth a wife, even on the day of death [of his near-of-kin], provided he does not make a feast [of betrothal], unless thirty days have gone by [at which time a feast is permissible]. And some say that even betrothal is forbidden the entire thirty days [of mourning]. And thus is the fundamental principle.
מתה אשתו אסור לישא אחרת עד שיעברו עליה שלש רגלים (אבל ליכנס לבית המשתה דינו כמו בשאר קרובים) (טור) וראש השנה ויום הכפורים אינם חשובי' כרגלים לענין זה ואם לא קיים מצות פריה ורביה או שיש לו בנים קטנים או שאין לו מי שישמשנו מותר לקדש מיד ולכנוס אחר שבעה ולא יבא עליה עד לאחר שלשים יום אלא אם כן לא קיים מצות פריה ורביה שאז מותר לבא עליה אחר ז': הגה והוא הדין בשאר אבלות אפילו באבלות דאביו ואמו מותר לישא ולבא עליה אחר שבעה אם לא קיים פריה ורביה. י"א דאף מי שהוא עשיר ויכולת בידו לשכור לו משרתים ומשרתות מכל מקום אם אין בתו או כלתו אצלו בביתו שתוכל לשמשו בחפיפת הראש או שאר דברים שמתבייש מאחרים מקרי אין לו מי שישמשנו וכל כיוצא בזה (פסקי מהרא"י סי"ג) ולכן נשתרבב המנהג שרבים מקילין בענין ונושאין נשים תוך שלש רגלים ובעל נפש יחוש לעצמו. מי שתפשו השר ואינו רוצה להניחו מתפיסתו עד שישא אשה תוך שלש רגלים אחר מיתת אשתו יש מתירין משום צער דידיה (ב"י) וכן נראה לי עיקר:
If his wife died, he is forbidden to take another [wife] until three Festivals have gone by her [death]. However, as to entering a house of feasting, the law regarding him is as [in the case of] other near-of-kin. The New Year and the Day of Atonement are not regarded as Festivals in this respect. If he has not complied [yet] with the duty of propagation, or [if] he has small children, or [if] he has no one to attend to him, he may betroth forthwith and wed [her] after the seven [days of mourning], but he should not cohabit with her until after thirty days, unless he has not [yet] complied with the duty of propagation, for [only] then is he permitted to cohabit with her after the seven [days of mourning]. Gloss: The same principle applies to other mourning, even to mourning for one's father and mother, [viz., that] he is permitted to marry and cohabit with her after the seven [days of mourning], [only] if he has not [yet] complied with the duty of propagation. Some say that even one who is wealthy and can afford to hire men and women servants [to attend to him], — yet, if his daughter or daughter-in-law are not present with him at his home so that [either of them] should be able to attend to him, [e.g.,] in the cleansing of his head or [in] other [private] matters, — for he feels embarrassed [when] others [do this for him], — [the law is that] he is regarded [as one who] has no one to attend to him, and [the same ruling applies to] everything similar to this. And it is for this reason that the custom has spread that many people adopt a lenient view in [this matter, and take wives within [the period of] three Festivals, but a conscientious person should bethink himself [in doing this]. [In the case of] one who was seized by the Governor, and [the latter] refuses to let him go from his detention until he takes a wife within [the period of] three Festivals after his [former] wife's death, some permit [him to remarry] on account of his suffering. And thus seems to me to be the fundamental principle.
מי שלא קיים מצות פריה ורביה ושידך אשה ואחר שהכין צרכי חופה מת אחי המשודכת מותר לכנסה ולבא עליה אחר שבעה: הגה וכן אם יש לו בנים קטנים ונתרצה לאחות אשתו מותר לכנסה כי היא מרחמת על בני אחותה יותר מאחרת (כ"כ בפי' הרא"ש והגהות מיימוני ומרדכי):
One who had not [yet] complied with the duty of propagation and had completed negotiations with a woman preliminary to betrothal, and after he made the wedding preparations, the brother of the woman who was proposed to [by him], died, — [the law is that] he is permitted to wed her and to cohabit with her after the seven [days of mourning]. Gloss: Similarly, if he has small children and he agreed [to marry] his wife's sister, he is permitted to wed her, for she shows mercy to her sister's children more than another [woman].
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