שולחן ערוך, יורה דעה שמ״ב

Shulchan Arukh, Yoreh De'ah 342

מי שהכין צרכי חופתו ומת לו מת שחייב עליו אבילות. ובו סעיף אחד:
מי שהכין כל צרכי חופתו שאפה פתו וטבח טבחו ומזג יינו ומת אביו של חתן והוא במקום שאינו מצוי למכור ואם תדחה החופה יפסיד מה שהכין או שמתה אמה של כלה ואיכא תמרוקי נשים וקישוטין שאינן מתקיימים (מאחר שאין להם מי שיטריח בעבורם בפעם אחרת) (כך משמע בגמרא) מכניסין את המת לחדר ואת החתן ואת הכלה לחופה ובועל בעילת מצוה ופורש וכיון שחלה עליו החופה הויא לדידיה כרגל ונוהג שבעת ימי המשתה ואח"כ נוהג שבעת ימי אבילות וכל שבעת ימי המשתה נוהג בהם דברים שבצינעא ואסור בתשמיש המטה הלכך כל ז' ימי המשתה וז' ימי האבל הוא ישן בין האנשים והיא ישנה בין הנשים: הגה יש אומרים שאסורה ליחד עמו ביום כמו בלילה ואין צריך להיות להם שתי שמירות רק הוא בין האנשים או היא בין הנשים (טור בשם הרא"ש) ואם אינן ישנים בחדר אחד אין צריכין שימור כלל (כ"כ הרשב"א בכלה שפירסה וכו') וי"א דבלילה צריך שתי שמירות וביום מותר להתייחד עמה (טור בשם הראב"ד) והמנהג ליקח קטן אצל החתן וקטנה אצל הכלה ואין מתייחדין בלא קטן או קטנה : ולענין שלשים אינו מונה אלא מז' ימי אבילות ואילך וכל ז' ימי החופה מותר בגיהוץ ותספורת ואם אין לו פסידא כגון במקום שמצוי למכור מה שהכין או אפילו אית ליה פסידא ומתה אמו של חתן או אביה של כלה או אחד משאר קרוביהם שנשאר מי שיכין להם לפעם אחרת לא התירו לדחות האבילות אלא קובר אותו מיד ונוהג שבעת ימי אבילות ואחר כך מכניסין את החתן ואת הכלה לחופה מיד ונוהג שבעת ימי המשתה:
LAWS OF MOURNING
One who made all the preparations for his wedding, [viz.,] he baked his bread and prepared his meat and mixed his wine, and the father of the bridegroom died, and he was in a locality where it is unlikely to sell [the food], and should the wedding be postponed he will lose whatever he prepared; or the mother of the bride died, and there are womens' perfumes and toilet [prepared] which are not durable, — [the law is that] since there is no one [available] who will prepare for them a second time, they bring the corpse into a room and the bridegroom and the bride into a bridal chamber, and he performs the dutiful marital act and [then] separates [himself from her and they bury the corpse forthwith]. However, since the marital precept rests upon him, it is regarded as a Festival day for him, and he observes [first] the seven days of the [wedding-] feast, and after this he observes the seven days of mourning. And the entire seven days of the [wedding-] feast he observes matters pertaining to private [mourning], and he is forbidden to use the conjugal couch. Therefore, the entire seven days of the [wedding-] feast and the seven days of mourning, he sleeps among the men and she sleeps among the women. Gloss: Some say that she is forbidden to be alone with him during the day as during the night, and they do not require two [separate] guardings; but [it suffices] that he is among the men or she among the women. And if they do not sleep in one room they require no guarding at all. And some say that during the night two guardings are required, and during the day he is allowed to be alone with her. The accepted custom is to take a minor boy [to be] with the bridegroom and a minor girl [to be] with the bride, and they do not remain alone without a minor boy or a minor girl. With respect to the thirty days [of mourning], — [the law is that] he counts only from the seven days of mourning and on. The entire seven days of the [wedding-] feast he is permitted fine laundry work and hair-cutting. And if he suffers no loss, e.g., in a locality where it is likely to sell whatever he prepared, or even if he suffers a loss, but the mother of the bridegroom died or the father of the bride or one of their near-of-kin, [so] that someone remains to prepare for them on another occassion, — [the law is that] they did not allow him [under such conditions] to postpone the mourning rites, but he buries him [the dead] forth-with, and observes seven days of mourning after which the bridegroom and the bride are brought immediately into a bridal chamber and he observes the seven days of the [wedding-] feast.

Ashlei Ravrevei: Shulchan Aruch Yoreh Deah, Lemberg, 1888 (Public Domain) · Code of Hebrew Law by Chaim N. Denburg, Montreal, 1955 (CC-BY) · 1 seif