It was taught: Rabbi Eliezer says: Just as there are hinges [tzirim] for a house, so there are pangs [tzirim] for a woman, as it is said, "And she bowed and gave birth, for her pangs turned upon her" (1 Samuel 4:19). Rabbi Yehoshua says: Just as there are doors for a house, so there are doors for a woman, as it is said, "Because it did not shut up the doors of my womb" (Job 3:10). Rava said: They [these parts] do not impart impurity under a tent [the dead body's openings], as it is said, "This is the law: when a man dies in a tent" (Numbers 19:14), a matter common to every person, and in a man there are no pangs. But is it not written, "Pangs have seized me, like the pangs of a woman in labor" (Isaiah 21:3)? Those are pangs of the flesh, for if you do not say so, how do you arrive at the 248 limbs? They would be found neither in a man nor in a woman. Rabbi Akiva says: Just as there is a key for a house, so there is a key for a woman, as it is said, "And He opened her womb" (Genesis 29:31). And against Rabbi Akiva the students of Rabbi Yishmael raise a difficulty, for Rabbi Yehuda said in the name of Shmuel: It happened with the students of Rabbi Yishmael that they boiled [in examination] a certain harlot who had been condemned to burning by the king, and they found in her 252 limbs. They came and asked Rabbi Yishmael: How many limbs are there in a person? He said, 248. They said to him: But behold, we examined and found 252. He said: Perhaps you examined a woman, in whom Scripture added two hinges and two doors. Perhaps, since they are small, they were worn away [in a man and so not counted].
Hinges, Doors, and the Key by Which God Opens the Womb
Yalkut Shimoni on Torah 126:2
תַּנְיָא, רַבִּי אֱלִיעֶזֶר אוֹמֵר כְּשֵׁם שֶׁצִּירִים לַבַּיִת כָּךְ צִירִים לָאִשָּׁה, שֶׁנֶּאֱמַר (שמואל א ד, יט) "וַתִּכְרַע וַתֵּלֶד כִּי נֶהֶפְכוּ עָלֶיהָ צִרֶיהָ". רַבִּי יְהוֹשֻׁעַ אוֹמֵר, כְּשֵׁם שֶׁדְּלָתוֹת לַבַּיִת כָּךְ דְּלָתוֹת לָאִשָּׁה, שֶׁנֶּאֱמַר (איוב ג, י) "כִּי לֹא סָגַר דַּלְתֵי בִטְנִי". אָמַר רָבָא, כֻּלָּן אֵינָן מִטַמְּאִין בְּאֹהֶל שֶׁנֶּאֱמַר (במדבר יט, יד) "זֹאת הַתּוֹרָה אָדָם כִּי יָמוּת בְּאֹהֶל", דָּבָר הַשָּׁוֶה בְּכָל אָדָם, וּבְאִישׁ לֵיכָּא צִירִים, וְהַכְּתִיב "צִירִים אֲחָזוּנִי כְּצִירֵי יוֹלֵדָה" צִירֵי בָּשָׂר דְּאִי לָא תֵּימָא הָכִי רְמַ"ח הֵיכִי מַשְׁכַּחַת לָהּ לֹא בָּאִישׁ וְלֹא בָּאִשָּׁה רַבִּי עֲקִיבָא אוֹמֵר, כְּשֵׁם שֶׁמַּפְתֵּחַ לַבַּיִת כָּךְ מַפְתֵּחַ לָאִשָּׁה, שֶׁנֶּאֱמַר וַיִּפְתַּח אֶת רַחְמָהּ. וּלְרַבִּי עֲקִיבָא קַשְׁיָא תַּלְמִידֵי רַבִּי יִשְׁמָעֵאל, דְאָמַר רַבִּי יְהוּדָה אָמַר שְׁמוּאֵל, מַעֲשֶׂה בְּתַלְמִידָיו שֶׁל רַבִּי יִשְׁמָעֵאל, שֶׁשָׁלְקוּ זוֹנָה אַחַת שֶׁנִתְחַיְּבָה שְׂרֵפָה לַמֶּלֶךְ וּמָצְאוּ בָּהּ רנ"ב אֵבָרִים, בָּאוּ וְשָׁאֲלוּ אֶת רַבִּי יִשְׁמָעֵאל, כַּמָּה אֵבָרִים יֵשׁ בּוֹ בָּאָדָם, אָמַר רְמַ"ח, אָמַר לֵיהּ רַבִּי יוֹחָנָן, וַהֲלֹא בָּדַקְנוּ וּמָצָאנוּ רנ"ב, שֶׁמָּא בְּאִשָּׁה בְּדַקְתֶּם שֶׁהוֹסִיף בָּהּ הַכָּתוּב שְׁנֵי צִירִים וּשְׁנֵי דְּלָתוֹת דִּילְמָא אַידֵי דְזוּטְרָא אִתְמוּחֵי אִתְמַח.