Reference for Yevamot 241:20
תניא א"ר עקיבא פעם אחת הייתי מהלך בספינה וראיתי ספינה אחת שמטרפת בים והייתי מצטער על תלמיד חכם שבה ומנו רבי מאיר כשעליתי למדינת קפוטקיא בא וישב ודן לפני בהלכה אמרתי לו בני מי העלך אמר לי גל טרדני לחברו וחברו לחברו עד שהקיאני ליבשה אמרתי באותה שעה כמה גדולים דברי חכמים שאמרו מים שיש להם סוף אשתו מותרת מים שאין להם סוף אשתו אסורה
and when the sun had set he could not find the entrance of the cave. His companion, after waiting long enough for his soul to depart, returned and reported the accident to his household. On the following day when the sun rose [the first man] discovered the entrance of the cave, and on returning he found his household in deep mourning<span class="x" onmousemove="('comment',' Lit., 'a great mourning in his house'. ');"><sup>36</sup></span> 'How great', exclaimed Rabbi, 'are the words of the Sages who ruled [that if a man fell into] water which has [a visible] end his wife is permitted [to marry again, but if into water] which has no [visible] end, his wife is forbidden'.If so,<span class="x" onmousemove="('comment',' If such an incident as that related by Rabbi is possible. ');"><sup>37</sup></span>