39:12

וַתִּתְפְּשֵׂהוּ בְּבִגְדוֹ לֵאמֹר שִׁכְבָה עִמִּי וַיַּעֲזֹב בִּגְדוֹ בְּיָדָהּ וַיָּנָס וַיֵּצֵא הַחוּצָה׃

And she caught him by his garment, saying: "Lie with me." And he left his garment in her hand, and fled, and went outside.

Bereshit 39:12

וַתִּתְפְּשֵׂהוּ בְּבִגְדוֹ לֵאמֹר

Bereshit / Genesis 39:12 · Remez

Bereshit 39:12

וַתִּתְפְּשֵׂהוּ בְּבִגְדוֹ לֵאמֹר שִׁכְבָה עִמִּי וַיַּעֲזֹב בִּגְדוֹ בְּיָדָהּ וַיָּנָס וַיֵּצֵא הַחוּצָה׃

And she caught him by his garment, saying: "Lie with me." And he left his garment in her hand, and fled, and went outside.

Remez רֶמֶז

The sea saw and fled

Why both "he fled" and "went outside"? Kli Yakar hears in the two verbs a hint of the future: the sea that will part before Yosef's coffin, and a going out beyond what the stars decree.

Kli Yakar: "the sea saw and fled" — it saw Yosef's flight. The penalty for a married woman is strangling, and drowning is a kind of strangling. Yosef fenced himself off from the forbidden, so water could not overwhelm his coffin, and with him all Israel was saved. And further: "went outside" like Avraham, beyond the stars, and nature fled at his voice.

How Kli Yakar explain it

Kli Yakar And he fled and went outside

It does not say "and he fled outside", because if a man runs through the streets of a city, everyone notices: why is he running and from what? So he ran only inside the house, and once out of the door, he went out at his usual pace, without running. And the Sages said (Tanchuma): "the sea saw and fled" (Tehillim / Psalms 114:3) — what did it see? It saw the coffin of Yosef, of whom it is said "and he fled and went outside". For the Sages said (Ketubot 30b): although the four death penalties of the court have ceased, the judgment of the four penalties has not ceased: one liable to strangling either drowns in a river or dies of a disease of the throat. And it is known that one who lies with a married woman is put to death by strangling. So too the generation of the flood was punished with drowning for their lewdness. And it is written: "for this let every pious one pray to You at a time of finding" (Tehillim / Psalms 32:6), and the Sages said (Berakhot 8a): this is a wife. And next to it: "only in the flood of many waters, they shall not reach him". Therefore Yosef, who fenced himself off from forbidden unions, as it says "and he fled and went outside", was worthy to save Israel from the flood of the sea's waters. This is "the sea saw and fled": it saw Yosef's flight from his master's wife. So it was fitting that the waters of the sea should not overwhelm Yosef's coffin. And with it were saved all who carried his coffin and all Israel who walked after his coffin, while the Egyptians, steeped in lewdness, drowned.
Or perhaps "and went outside" means: outside what the stars foretold for him, as it says of Avraham: "and He brought him outside" (Bereshit / Genesis 15:5). So Yosef went beyond the order of the stars, until the stars had no power to rule him. On the contrary, he ruled over nature, and it fled at his voice. This is the splitting of the Sea of Reeds before Yosef's coffin.

Takeaway

One word in two places: of Yosef "וַיָּנָס" (and he fled), of the sea "הַיָּם רָאָה וַיָּנֹס" (the sea saw and fled, Tehillim / Psalms 114:3). The Sages link them.
Israel carried Yosef's bones out of Egypt, as they had promised him (Shemot / Exodus 13:19). His coffin went with the people through the sea.
"And He brought him outside" is said of Avraham when God showed him the stars: "look at the sky and count the stars" (Bereshit / Genesis 15:5). The Sages teach that Avraham went out from under the rule of the stars.