TT #14 · Parshas Noach · First Aliyah · Passuk 6:18
But I will establish My covenant with you, and you shall enter the ark — you, your sons, your wife, and your sons’ wives with you.
Torah Temimah points to Sanhedrin 108b (R’ Yochanan comparing the order of entry vs. exit).
E-Daf image — Sanhedrin 108b (size=3)
Shas / HebrewBooks PDF of the daf
“You and your sons and your wife” — whereas regarding the exit it is written “Go out from the ark, you and your wife and your sons” — R’ Yochanan said: This teaches that upon their entry they were forbidden marital relations.
Category B — Lexical / linguistic interpretation.
Method — The Gemara derives the temporary prohibition of marital relations from the changed order in which the family members are listed at entry and exit.
Textual trigger — At entry: “atah uvanekha ve’ishtekha”; at exit: “atah ve’ishtekha uvanekha.”
Parallel / contrast — The male-first order at entry is contrasted with the mixed order at exit; the sequence itself is the textual signal.
While the ark was closed during the Flood, marital relations were forbidden; they were permitted again only upon exit.