Alternatively, it may be understood according to Rabbi Yirmeya ben Elazar. For Rabbi Yirmeya ben Elazar said: the Holy One, blessed be He, created two faces in Adam, the first man, as it is said: "Behind and before You have formed me" (Psalms 139:5). "And the LORD God built the rib" (Genesis 2:22). Rav and Shmuel disagree. One said it was a face, and one said it was a tail. It is well according to the one who said it was a face - that is what is written, "Behind and before You have formed me." This accords with Rabbi Abbahu, for Rabbi Abbahu raised a contradiction: it is written, "Male and female He created them" (Genesis 1:27), and it is written, "For in the image of God He made the man" (Genesis 9:6). How can this be? At first it arose in the divine thought to create two, and in the end only one was created.
Adam The Hermaphrodite
Berakhot 61a
אִי נָמֵי כִּדְרַבִּי יִרְמְיָה בֶּן אֶלְעָזָר. דְּאָמַר רַבִּי יִרְמְיָה בֶּן אֶלְעָזָר: דּוּ פַּרְצוּפִין בָּרָא הַקָּדוֹשׁ בָּרוּךְ הוּא בָּאָדָם הָרִאשׁוֹן, שֶׁנֶּאֱמַר: ״אָחוֹר וָקֶדֶם צַרְתָּנִי״. ״וַיִּבֶן ה׳ אֱלֹהִים אֶת הַצֵּלָע״. רַב וּשְׁמוּאֵל: חַד אָמַר פַּרְצוּף. וְחַד אָמַר זָנָב. בִּשְׁלָמָא לְמַאן דְּאָמַר פַּרְצוּף — הַיְינוּ דִּכְתִיב ״אָחוֹר וָקֶדֶם צַרְתָּנִי״. כִּדְרַבִּי אֲבָהוּ, דְּרַבִּי אֲבָהוּ רָמֵי: כְּתִיב: ״זָכָר וּנְקֵבָה בְּרָאָם״, וּכְתִיב ״כִּי בְּצֶלֶם אֱלֹהִים עָשָׂה אֶת הָאָדָם״! הָא כֵּיצַד? — בַּתְּחִלָּה עָלָה בְּמַחְשָׁבָה לִבְרֹאת שְׁנַיִם, וּלְבַסּוֹף לֹא נִבְרָא אֶלָּא אֶחָד.