"And it came to pass, when the days had grown long for him there" (Genesis 26:8). Rabbi Yochanan said: a hard dream and a hard prophecy and foolish mourning length of days nullifies them. A hard prophecy, as it is written, "the days are prolonged and every vision fails" (Ezekiel 12:22); foolish mourning [is likewise undone by time]; [and a hard dream] from Isaac, "when the days had grown long for him there." "And he looked, and behold, Isaac was sporting [with Rebekah his wife]" (Genesis 26:8). Was he doing this thing because the days had grown long? Did not Rabbi Yochanan say: one who has marital relations by day is disgraceful, for Rabbi Yochanan said marital union is only at night, as it is said, "in the evening she comes and in the morning she returns" (Esther 2:14)? Job cursed the day of his birth and the night of his conception, as it is written, "let the day perish wherein I was born, and the night that said, a man-child is conceived" (Job 3:3). Job said: would that my mother had been menstruant when my father came to be intimate with her, so that she would have said to him, "a man-child is conceived" [i.e., warned him off]. Jeremiah cursed the day of his birth and the day of his conception, "cursed be the day wherein I was born" (Jeremiah 20:14) this is the day of conception; "the day that my mother bore me" this is the day of birth. Is it possible that Hilkiah, a righteous man, would do such a thing [as have relations by day]? Rather, because Jezebel was killing the prophets, he had relations by day and fled.
When the Days Grew Long for Isaac in Gerar
Yalkut Shimoni on Torah 111:10
(בראשית כו ח) וַיְהִי כִּי אָרְכוּ לוֹ שָׁם הַיָּמִים, אָמַר רַבִּי יוֹחָנָן חֲלוֹם קָשֶׁה נְבוּאָה קָשָׁה, אֵבֶל שׁוֹטֶה אֲרִיכוּת יָמִים מְבַטְלָתָן, נְבוּאָה קָשָׁה דִּכְתִיב (יחזקאל יב, כב) "יַאַרְכוּ הַיָּמִים וְאָבַד כָּל חָזוֹן" אֵבֶל שׁוֹטֶה וְכוּ' מִיִּצְחָק וַיְהִי כִּי אָרְכוּ לוֹ שָׁם הַיָּמִים... וַיַּרְא וְהִנֵּה יִצְחָק מְצַחֵק, בִּשְׁבִיל שֶׁהֶעֱלוּ יָמִים אֲרוּכִּים הָיָה עוֹשֶׂה דָּבָר זֶה לֹא כָּךְ אָמַר רַבִּי יוֹחָנָן הַמְּשַׁמֵּשׁ מִטָּתוֹ בַּיּוֹם הֲרֵי זֶה מְגֻנֶּה, דְאָמַר רַבִּי יוֹחָנָן, אֵין תַּשְׁמִּשׁ הַמִּטָּה אֶלָּא בַּלָּיְלָה, שֶׁנֶּאֱמַר "בָּעֶרֶב הִיא בָאָה וּבַבֹּקֶר הִיא שָׁבָהּ". אִיּוֹב קִלֵּל יוֹם לֵידָתוֹ וְלֵיל עִבּוּרוֹ, הֲדָא הוּא דִכְתִיב (איוב ג, ב) "יֹאבַד יוֹם אִוָּלֶד בּוֹ וְהַלַּיְלָה אָמַר הֹרָה גָבֶר" אָמַר אִיּוֹב הַלְוַאי הָיְתָה אִמִּי נִדָּה בְּשָׁעָה שֶׁבָּא אַבָּא לִיזָקֵק לָהּ, שֶׁתֹּאמַר לוֹ הֹרֶה גָבֶר יִרְמִיָּה מְקַלֵּל יוֹם לֵידָתוֹ וְיוֹם עִבּוּרוֹ "אָרוּר הַיּוֹם אֲשֶׁר יֻלַּדְתִּי בּוֹ", זֶה יוֹם הָעִבּוּר, "יוֹם אֲשֶׁר יְלָדַתְנִי אִמִּי", זֶה יוֹם הַלֵּידָה, אֶפְשָׁר חִלְקִיָּהוּ אָדָם צַדִּיק הָיָה עוֹשֶׂה דָּבָר זֶה אֶלָּא לְפִי שֶׁהָיְתָה אִיזֶבֶל הוֹרֶגֶת בַּנְּבִיאִים שִׁמֵּשׁ מִטָּתוֹ בַּיּוֹם וּבָרַח. (בראשית כו יא-יב) וַיִּזְרַע יִצְחָק בָּאָרֶץ הַהִיא, אָמַר רַבִּי חֶלְבּוֹ הָאָרֶץ קָשָׁה וְהַשָּׁנָה קָשָׁה אַף עַל פִּי כֵן הִצְלִיחַ, וְאִלּוּ הָיְתָה יָפָה עַל אַחַת כַּמָּה וְכַמָּה וַיִּמְצָא בַּשָּׁנָה הַהִיא מֵאָה שְׁעָרִים, מֵאָה מִינִים שְׁעָרִים מֵאָה כּוּרִים הֶאֱמִידוּ אוֹתָהּ וְעָשְׂתָה כַּמָּה שֶׁהֶאֱמִידוּהָ וַהֲלֹא כָּל דָּבָר שֶׁבְּמִדָּה וּבְמִנְיָן אֵין בְּרָכָה מְצוּיָה בּוֹ, מִפְּנֵי מָה אָמְדוּ אוֹתָהּ, מִפְּנֵי הַמַּעֲשֵׂר.