אֶלָּא: חֲלָלָהּ — קוֹדֶם שֶׁנִּבְרָא הָעוֹלָם, וְאוּר דִּידֵיהּ — בְּשֵׁנִי בַּשַּׁבָּת. וְאוּר דִּידַן — בְּמַחְשָׁבָה עָלָה לִיבָּרְאוֹת בְּעֶרֶב שַׁבָּת, וְלֹא נִבְרָא עַד מוֹצָאֵי שַׁבָּת.
Rather, the void of Gehenna was created before the world was created, and its fire was created only on the second day of the week. And the thought arose in God’s mind to create our fire on Shabbat eve; however, it was not actually created until the conclusion of Shabbat,
וַיִּנָּחֶם ה' כִּי עָשָׂה אֶת הָאָדָם בָּאָרֶץ (בראשית ו, ו), רַבִּי יְהוּדָה וְרַבִּי נְחֶמְיָה, רַבִּי יְהוּדָה אָמַר תַּוְהוּת הָיְתָה לְפָנַי שֶׁבָּרָאתִי אוֹתוֹ מִלְּמַטָּה, שֶׁאִלּוּ בָּרָאתִי אוֹתוֹ מִלְּמַעְלָה לֹא הָיָה מוֹרֵד בִּי. רַבִּי נְחֶמְיָה אָמַר מִתְנַחֵם אֲנִי שֶׁבָּרָאתִי אוֹתוֹ מִלְּמַטָּה שֶׁאִלּוּ בָּרָאתִי אוֹתוֹ מִלְּמַעְלָה כְּשֵׁם שֶׁהִמְרִיד בִּי אֶת הַתַּחְתּוֹנִים, כָּךְ הָיָה מַמְרִיד בִּי אֶת הָעֶלְיוֹנִים. ... אֶפִּיקוֹרֶס אֶחָד שָׁאַל אֶת רַבִּי יְהוֹשֻׁעַ בֶּן קָרְחָה, אָמַר לוֹ אֵין אַתֶּם אוֹמְרִים שֶׁהַקָּדוֹשׁ בָּרוּךְ הוּא רוֹאֶה אֶת הַנּוֹלָד, אָמַר לוֹ הֵן. וְהָא כְתִיב וַיִּתְעַצֵּב אֶל לִבּוֹ. אָמַר לוֹ נוֹלַד לְךָ בֶּן זָכָר מִיָּמֶיךָ, אָמַר לוֹ הֵן, אָמַר לוֹ מֶה עָשִׂיתָ, אָמַר לוֹ שָׂמַחְתִּי וְשִׂמַּחְתִּי אֶת הַכֹּל, אָמַר לוֹ וְלֹא הָיִיתָ יוֹדֵעַ שֶׁסּוֹפוֹ לָמוּת, אָמַר לוֹ בִּשְׁעַת חֶדְוָתָא חֶדְוָתָא, בִּשְׁעַת אֶבְלָה אֶבְלָה. אָמַר לוֹ כָּךְ מַעֲשֶׂה לִפְנֵי הַקָּדוֹשׁ בָּרוּךְ הוּא, דְּאָמַר רַבִּי יְהוֹשֻׁעַ בֶּן לֵוִי שִׁבְעָה יָמִים נִתְאַבֵּל הַקָּדוֹשׁ בָּרוּךְ הוּא עַל עוֹלָמוֹ קֹדֶם שֶׁלֹא יָבוֹא מַבּוּל לָעוֹלָם,
"And God regretted that he made man on earth" (Bereishit 6:6). Rabbi Yehuda and Rabbi Neḥemia [each interpreted this]. Rabbi Yehuda says, "[God said] that I regret that I created man below [on earth] since if I had created him above [in heaven] he would not have rebelled against Me." Rabbi Neḥemia says, "[God said] that I am consoled that I created man below [on earth] since if I had created him above [in heaven], then just as he incited the lower worlds against Me, so too he would incite the upper worlds against Me." ...Once, an apikores asked Rabbi Yehoshua ben Korḥa, "Don't you say that the Holy One blessed is He sees the future?" Rabbi Yehoshua replied "Indeed." The apikores retorted "But isn't it written 'and He was sad on His heart'?!" [i.e. Didn't God know that He would later regret the decision?] Rabbi Yehoshua said "Has a male child ever been born to you?" He said "Indeed". Rabbi Yehoshua asked "What did you do [when your son was born]?" He said "I was happy and made everyone happy". Rabbi Yehoshua said "But didn't you know that your son will die in the end?" He said "At the time of joy I am joyous; at the time of mourning I am mournful". Rabbi Yehoshua said "So too is the work [of creation] before the Holy One blessed is He." As Rabbi Yehoshua ben Levi says "The Holy One blessed is He mourned over the world for seven days before the Flood came".
וְאִם לֹא תִשְׁמָעוּהָ בְּמִסְתָּרִים תִּבְכֶּה נַפְשִׁי מִפְּנֵי גֵוָה אָמַר רַב שְׁמוּאֵל בַּר אִינְיָא מִשְּׁמֵיהּ דְּרַב מָקוֹם יֵשׁ לוֹ לְהַקָּדוֹשׁ בָּרוּךְ הוּא וּמִסְתָּרִים שְׁמוֹ
The verse states: “But if you will not hear it, my soul shall weep in secret [bemistarim] for your pride” (Jeremiah 13:17). Rav Shmuel bar Inya said in the name of Rav: The Holy One, Blessed be He, has a place where He cries, and its name is Mistarim.