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 · Drash

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.

Drash דְּרָשׁ

Last and first

You joined the team last, when everything had been set up without you. Does that mean you are needed here least of all?

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

Midrash Tanchuma (Buber) If a woman conceives

Another interpretation: "If a woman conceives." Of this it says: "Behind and before You formed me" (Tehillim / Psalms 139:5). Scripture speaks of the first human.

Rabbi Yochanan said: of him "formed" is written with two letters yod (י), two formations: "And the Eternal Almighty formed (וַיִּיצֶר) man" (Bereshit / Genesis 2:7). One formation for this world, the other for the world to come. But of the cattle, the beasts and the birds one formation is written: "And the Eternal Almighty formed (וַיִּצֶר) out of the ground every beast of the field" (Bereshit / Genesis 2:19). That is why it says: "Behind and before You formed me."

Rabbi Shimon ben Lakish says: "behind" is after all that was made on the sixth day, and "before" is earlier than all that was made on the first day. From where? Rabbi Shimon ben Lakish said: "And the spirit of the Almighty hovered over the water" (Bereshit / Genesis 1:2): this is the soul of the first human. That is why it says: "Behind and before You formed me": behind, after what was made on the sixth day, before, earlier than what was made on the first day.

Rabbi Elazar ben Pedat says: "behind" is after all the works of the sixth day, and "before" is earlier than all the works of the sixth day. How so? Six things the Holy One, blessed is He, created on the sixth day: the living soul, cattle, creeping things, beasts of the earth, Adam and Chava (Eve). And the soul of the human was created first, as it says: "Let the earth bring forth the living soul (נֶפֶשׁ חַיָּה)" (Bereshit / Genesis 1:24). And "the living soul" is nothing but the soul of the human, as it says: "And the human became a living soul (נֶפֶשׁ חַיָּה)" (Bereshit / Genesis 2:7).

So he came before all that was made on the sixth day. And he came after all on the sixth day, because He was occupied with him the whole sixth day. That is what "Behind and before You formed me" means: behind, after the works of the sixth day, before, earlier than the works of the sixth day.

Rabbi Shmuel bar Nachman said: what does "behind and before" mean? Two faces, male and female. That is what "Behind and before You formed me" means.

Adam said: "After the Holy One, blessed is He, created all the cattle and the beasts, He created me." So too this infant: before he comes out of his mother's womb, the Holy One, blessed is He, commands him: "Eat this, and do not eat that" and "This is what is impure for you" (Vayikra / Leviticus 11:29). And only when he takes upon himself in his mother's womb all the commandments of the Torah is he born, as it says: "If a woman conceives and bears a male child."

Takeaway

Of the human "formed" (וַיִּיצֶר) is written with two letters yod (י) (Bereshit / Genesis 2:7), and of the beasts "formed" (וַיִּצֶר) with one (Bereshit / Genesis 2:19). From this the midrash draws two formations of the human.
In its plain sense the verse of Psalms means "You have hemmed me in behind and before": so Metzudat David explains (Metzudat David on Tehillim / Psalms 139:5). The midrash reads the same word (צַרְתָּנִי) as "formed".
Rashi explains the same order on this verse in the name of Rabbi Simlai: the human was created after cattle, beasts and birds, and the law about him comes after the law about them. So Pshat and Drash speak of one thing.
"Two faces" (דּוּ פַּרְצוּפִין): the midrash says the first human was created male and female together. The Talmud reads the same verse of Psalms the same way (Berakhot 61a).
Literally "living soul" (נֶפֶשׁ חַיָּה): the Torah uses these words both of the animals (Bereshit / Genesis 1:24) and of the human (Bereshit / Genesis 2:7). The midrash reads them in both verses as the soul of the human.
How can the human be both before and after all the works of the sixth day? Etz Yosef explains this view of Rabbi Elazar in Bereshit Rabbah: the human soul was created before all that was made on the last day of creation, and the body after it all (Etz Yosef on Bereshit Rabbah 8:1).