"And the boundary shall be the sea." It was taught: What is considered the Land of Israel and what is considered outside the Land? Anything that receives abundant water from the torrents of Ammon and is within the Land [of Israel], it is considered part of the Land. Anything that receives abundant water from the torrents of Ammon but is outside the Land, it is considered outside the Land. And those who are at sea see them as if a thread is stretched over them from Kefarloriya to the Ocean Sea, from the River of Egypt to the Ocean Sea. Within the thread is the Land of Israel, and outside the thread is outside the Land. The rabbis ask: What is the purpose of the phrase "and the boundary shall be the sea"? It is needed for those at sea. But Rabbi Yehuda says it is not necessary for those at sea.
How Water Defines the Boundaries of the Holy Land
Yalkut Shimoni on Torah 787:7
(במדבר לד ו-ז) וּגְבוּל יָם. תַּנְיָא אֵיזֶהוּ אֶרֶץ יִשְׂרָאֵל וְאֵיזֶהוּ חוּצָה לָאָרֶץ. כָּל שֶׁשּׁוֹפֵעַ וְיוֹרֵד מִטּוּרֵי אַמְנוֹן וְלִפְנִים אֶרֶץ [יִשְׂרָאֵל], מִטּוּרֵי אַמְנוֹן וְלַחוּץ חוּץ לָאָרֶץ, וְהַנַּסִּים שֶׁבַּיָּם רוֹאִין אוֹתָן כְּאִלּוּ חוּט מָתוּחַ עֲלֵיהֶן מִטּוּרֵי אַמְנוֹן וְעַד נַחַל מִצְרַיִם, מִן הַחוּט [וְלִפְנִים אֶרֶץ יִשְׂרָאֵל, מִן הַחוּט] וְלַחוּץ חוּץ לָאָרֶץ. רַבִּי יְהוּדָה אוֹמֵר כָּל שֶׁכְּנֶגֶד אֶרֶץ יִשְׂרָאֵל הֲרֵי הוּא אֶרֶץ יִשְׂרָאֵל, שֶׁנֶּאֱמַר "וּגְבוּל יָם וּגְבוּל", הַנַּסִּים שֶׁבַּצְּדָדִין רוֹאִין אוֹתָן כְּאִלּוּ חוּט מָתוּחַ עֲלֵיהֶן מִקַּפְלוֹרְיָא וְעַד יַם אוֹקְיָנוֹס וּמִנַּחַל מִצְרַיִם וְעַד יַם אוֹקְיָנוֹס, מִן הַחוּט וְלִפְנִים אֶרֶץ יִשְׂרָאֵל, מִן הַחוּט וְלַחוּץ חוּץ לָאָרֶץ. וְרַבָּנַן, הַאי וּגְבוּל יָם מַאי עָבְדֵי לֵיהּ. מִבָּעֵי לֵיהּ לַנַּסִּים. וְרַבִּי יְהוּדָה, לַנַּסִּים לָא צָרִיךְ.