Vayikra12:2

דַּבֵּר אֶל־בְּנֵי יִשְׂרָאֵל לֵאמֹר אִשָּׁה כִּי תַזְרִיעַ וְיָלְדָה זָכָר וְטָמְאָה שִׁבְעַת יָמִים כִּימֵי נִדַּת דְּוֺתָהּ תִּטְמָא׃

"Speak to the children of Israel, saying: If a woman conceives and bears a male child, she shall be impure seven days, as in the days of her separation for her monthly sickness she shall be impure.

Vayikra 12:2

דַּבֵּר אֶל־בְּנֵי יִשְׂרָאֵל

Vayikra / Leviticus 12:2 · Pshat

Vayikra 12:2

דַּבֵּר אֶל־בְּנֵי יִשְׂרָאֵל לֵאמֹר אִשָּׁה כִּי תַזְרִיעַ וְיָלְדָה זָכָר וְטָמְאָה שִׁבְעַת יָמִים כִּימֵי נִדַּת דְּוֺתָהּ תִּטְמָא׃

"Speak to the children of Israel, saying: If a woman conceives and bears a male child, she shall be impure seven days, as in the days of her separation for her monthly sickness she shall be impure.

Pshat פְּשָׁט

The human after the animals

Sometimes the main thing is left for last: first the preparation, then what it was all for. This chapter is built that way too.

Rashi brings the words of Rabbi Simlai: the human was created after the cattle, beasts and birds, so the laws about him come after the laws about animals. Ibn Ezra: having finished with the pure and impure in food, the Torah turns to the impurity of the human and begins with birth, because birth is the beginning. The word "conceives" (תַזְרִיעַ) means "gives seed": the woman is like the earth.

How Rashi and Ibn Ezra explain it

Rashi If a woman conceives

Rabbi Simlai said: just as the human was created after all the cattle, beasts and birds at the creation of the world, so the law about him is set out after the law about the cattle, beasts and birds.

Rashi Her sickness (דּוֹתָהּ)

This word means what flows from her body. Another explanation: it comes from the words "illness" and "sickness" (מַדְוֶה), for there is no woman who sees blood without feeling unwell: her head and her body grow heavy.

Ibn Ezra If a woman conceives

Having finished the law of the pure and the impure in what is eaten, the Torah speaks of the impurity of the human and begins with the woman who gives birth, because birth is the beginning. Many said: if the woman gives seed first, she bears a male, and so it says "and bears a male child". So the sages of Greece held that the woman has seed, and the seed of the man makes it set, and the whole child is from the blood of the woman. So "conceives" (תַזְרִיעַ) is "gives seed", for she is like the earth.

Takeaway

The midrash brings the words of Rabbi Simlai (Vayikra Rabbah 14:1).
The laws of the cattle, beasts and birds that may be eaten are in the previous chapter (Vayikra / Leviticus 11).
The word "conceives" (תַזְרִיעַ) comes from the root "seed" (זֶרַע): the same root as the plant "yielding seed" (Bereshit / Genesis 1:11). So Ibn Ezra compares the woman to the earth.
The words "if the woman gives seed first, a male is born" are from the Talmud (Niddah 31a).