From the principle that what follows is an act, yet it is only the detail of the first. How so? "And God created the man in His image" (Genesis 1:27): this is a general statement [klal]. And afterward it specified His acts (Genesis 2:7), "and the LORD God formed the man," (Genesis 2:21-22) "and the LORD God caused a deep sleep to fall upon the man, and the LORD God built the rib." One who sees this thinks it is another act, but it is only the detail of the first. Likewise, "the vision of Isaiah" (Isaiah 1:1) is a general statement, and afterward the detail: (Isaiah 6:1) "in the year that King Uzziah died," "in the year that King Ahaz died" (Isaiah 14:28), (Isaiah 36:1) "and in the fourteenth year of King Hezekiah." One who hears this thinks it is another matter, but it is only the detail of the first.
The Second Creation Account Is the Detail of the First
Yalkut Shimoni on Torah 16:3
מִכְּלָל שֶׁאַחֲרָיו מַעֲשֶׂה, וְאֵינוֹ אֶלָּא פְּרָטוֹ שֶׁל רִאשׁוֹן כֵּיצַד, וַיִּבְרָא אֱלֹהִים אֶת הָאָדָם בְּצַלְמוֹ, הֲרֵי זֶה כְּלָל. וְאַחַר כָּךְ פֵּרֵט מַעֲשָׂיו (בראשית ב, ז) "וַיִּיצֶר ה' אֱלֹהִים אֶת הָאָדָם" (שם כא כב) "וַיַּפֵּל ה' אֱלֹהִים תַּרְדֵּמָה עַל הָאָדָם, וַיִּבֶן ה' אֱלֹהִים אֶת הַצֵּלָע", הָרוֹאֶה סָבוּר שֶׁהוּא מַעֲשֶׂה אַחֵר וְאֵינוֹ אֶלָּא פְּרָטוֹ שֶׁל רִאשׁוֹן. כַּיּוֹצֵא בּוֹ, "חֲזוֹן יְשַׁעְיָהוּ" כְּלָל וְאַחַר כָּךְ פְּרָט, (שם ו, א) "בִּשְׁנַת מוֹת הַמֶּלֶךְ עֻזִיָּהוּ", "בִּשְׁנַת מוֹת הַמֶּלֶךְ אָחָז", (שם לו, א) "וּבְאַרְבַּע עֶשְׂרֵה שָׁנָה לַמֶּלֶךְ חִזְקִיָּהוּ", הַשּׁוֹמֵעַ סָבוּר שֶׁהוּא מַעֲשֶׂה אַחֵר וְאֵינוֹ אֶלָּא פְּרָטוֹ שֶׁל רִאשׁוֹן.