1שהזהיר כהן הדיוט מהטמא לשאר מתים כי אם לקרוביו המבוארים בכתוב, והוא אמרו לנפש לא יטמא בעמיו ומי שעבר על לאו זה ונטמא לזולת ששה מתי מצוה חייב מלקות. וזאת האזהרה אין הנשים חייבות בה, ובאה הקבלה בני אהרן ולא בנות אהרן. (אמור אל הכהנים, הלכות אבל פ"ג):
That He prohibited an ordinary priest from becoming impure for the dead, other then for his relatives that are enumerated in Scripture. And that is His saying, "Let him not make himself impure with the dead among his people" (Leviticus 21:1). And one who transgresses this and becomes impure for one besides the six commanded [relatives] is liable for lashes. And women are not obligated in this commandment - the tradition (Sifra, Emor, Section 1:1) comes [to teach]: "'The sons of Aharon,' and not the daughters of Aharon." (See Parashat Emor; Mishneh Torah, Mourning 3.)
The Rambam's count of the 613 mitzvos. English: Rabbi Francis Nataf, Sefaria 2021 (CC-BY). Hebrew: Warsaw 1883. Via Sefaria. All the library · Jer’s Torah Page