TT #53 · Parshas Tazria · Aliyah 1 · Passuk 7
English: He shall offer it before GOD and make expiation on her behalf; she shall then be pure from her flow of blood. Such are the rituals concerning a woman who bears a child, male or female.
Chabad.org — Chumash, English translation + Rashi for Vayikra 12:7
Torah Temimah cites Sifra (Toras Kohanim) for deriving the inclusion of certain miscarriages from the verse’s words “for a male or for a female.”
Sifra — Vayikra 12, Midrash Sefer
English: “For a male or for a female”—the Sifra uses this phrase to include atypical miscarriage cases within the childbirth-offering law.
Textual inclusion
This phrase introduces the inclusion of atypical miscarriage cases; the following unit names the sandal-shaped fetus, placenta, and formed sac.