The Rambam · Sefer Ahavah
הלכות קריאת שמע ד׳Reading the Shema 4
Chapter 4 of 4 in Reading the Shema — 8 halachot
Halacha 1א׳
נשים ועבדים וקטנים פטורים מקריאת שמע ומלמדין את הקטנים לקרותה בעונתה ומברכין לפניה ולאחריה כדי לחנכן במצות מי שהיה לבו טרוד ונחפז לדבר מצוה פטור מכל המצות ומקריאת שמע לפיכך חתן שנשא בתולה פטור מקריאת שמע עד שיבא עליה לפי שאין דעתו פנויה שמא לא ימצא לה בתולים ואם שהה עד מוצאי שבת ולא בעל חייב לקרות ממוצאי שבת ואילך שהרי נתקררה דעתו ולבו גס בה אף על פי שלא בעל.
Women, slaves, and young children are exempt from the recitation of the Shema. [We should] teach children to recite it at its time, and bless before and after it so as to educate them in the commandments. [If] someone had his heart occupied and hasten for [another] commandment, he is exempt from all [other] commandments and from the recitation of the Shema. Therefore, a groom who takes a virgin is exempt from the recitation of the Shema until he has relations with her, considering his mind is lacking [i.e. he has no concentration] in case he does not find her a virgin. If he tarries until Saturday night and does not have intercourse [with her], he is obligated to recite from [that] Saturday night and on, as indeed his mind is calmed and his heart knows her even though he did not have relationships.
Halacha 2ב׳
אבל הנושא את הבעולה אע"פ שעוסק במצוה חייב לקרות הואיל ואין לו דבר שמשמש דעתו וכן כל כיוצא בזה.
But [one who] takes the non-virgin woman, even though [he] is occupied with a commandment, [he] is obligated to recite, since he has nothing that confuses his mind, and thus it is so for similar cases.
Halacha 3ג׳
מי שמת לו מת שהוא חייב להתאבל עליו פטור מקריאת שמע עד שיקברנו מפני שאין דעתו פנויה לקרות ואם היה משמר את המת אף על פי שאינו מתו פטור מקריאת שמע ואם היו השומרים שנים האחד משמר והשני נשמט למקום אחר וקורא וחוזר ומשמר ונשמט האחר וקורא וכן החופר קבר למת פטור מקריאת שמע.
Someone who has someone die that he is obligated to mourn upon is exempt from the recitation of the Shema until he buries him because his mind is lacking [i.e. he has no concentration] to recite. If one was guarding a deceased body, even if it is not the body of his [relative], he is exempt from the recitation of the Shema. If there are two guards, one guards and the second [one] leaves to another place and recites and returns to guard, and the other leaves and recites. A digger of a grave is exempt from the recitation of the Shema.
Mishneh Torah, Hebrew Wikisource edition, via Sefaria — CC BY-SA
English: Sefaria Community Translation — CC0