Vayikra / Leviticus 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
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
Remez רֶמֶז
Seven and eight
Kitzur Baal HaTurim: the word "male" (זָכָר) equals the word "blessing" (בְּרָכָה) in the numerical value of the letters. Seven days of impurity after birth are like seven days of mourning: as a person came, so he will go. Kli Yakar: seven is the number of nature and eight is above nature, so circumcision is on the eighth day.
How Kitzur Ba'al HaTurim and Kli Yakar explain it
Drash דְּרָשׁ
Last and first
Midrash Tanchuma reads the verse of Psalms "Behind and before You formed me" of the first human: he was created last, after all the beasts, and his soul before everything. In the word "formed" (וַיִּיצֶר) of the human there are two letters yod (י): one formation for this world, the other for the world to come. So too the infant: before he is born, he takes upon himself in his mother's womb all the commandments.
How Midrash Tanchuma (Buber) explain it
Sod סוֹד
The bolt of the whole world
Sefat Emet: the human was created last in deed and first in repair. In him is the densest of the material and the highest of the spiritual, so he joins all creation and can turn it toward the Eternal. First the weekdays, work on what is coarse in oneself, and then Shabbat, the step of repair.
How Sefat Emet explain it