עירובין ה:ט · Eruvin 5:9

אָמַר לָהֶן רַבִּי עֲקִיבָא, אִי אַתֶּם מוֹדִים לִי בְנוֹתֵן עֵרוּבוֹ בִמְעָרָה, שֶׁאֵין לוֹ מִמְּקוֹם עֵרוּבוֹ אֶלָּא אַלְפַּיִם אַמָּה. אָמְרוּ לוֹ, אֵימָתַי, בִּזְמַן שֶׁאֵין בָּהּ דִּיוּרִין, אֲבָל יֶשׁ בָּהּ דִּיוּרִין, מְהַלֵּךְ אֶת כֻּלָּהּ וְחוּצָה לָהּ אַלְפַּיִם אַמָּה. נִמְצָא, קַל תּוֹכָהּ מֵעַל גַּבָּהּ. וְלַמּוֹדֵד שֶׁאָמְרוּ נוֹתְנִין לוֹ אַלְפַּיִם, שֶׁאֲפִלּוּ סוֹף מִדָּתוֹ כָּלֶה בִמְעָרָה:
Rabbi Akiva said to the Rabbis: Do you not concede to me that one who places his eiruv in a cave has only two thousand cubits from the place of his eiruv , and that consequently the entire cave is not considered as merely four cubits? The Rabbis said to him: When does this apply? When the cave has no residents. But if it has residents, it is considered as though it were only four cubits, and one may walk through all of it and another two thousand cubits beyond it. Consequently, the halakha with regard to an eiruv placed inside a cave is sometimes more lenient than the halakha governing an eiruv placed in the area above the cave. If one places his eiruv inside a cave that has residents, he has two thousand cubits beyond the cave; if he places it above the cave, where there are no residents, he has only two thousand cubits from the place of his eiruv . And as for one who is measuring his Shabbat limit, with regard to whom the Sages said that one gives him two thousand cubits, that measurement applies even if the end of his measurement terminates in the middle of a cave. He may not walk further into the cave, even if the cave is inhabited.

Word-by-word Breakdown (מילים ושרשים)

אָמַר → said [א - מ - ר]לָהֶן → to them רַבִּי → Rabbi [ר - ב - ה]עֲקִיבָא → Akiva אִי → Do אַתֶּם → you מוֹדִים → concede [י - ד - ה]לִי → to me בְנוֹתֵן → regarding one who places [נ - ת - ן]עֵרוּבוֹ → his eiruv [ע - ר - ב]בִמְעָרָה → in a cave [מ - ע - ר]שֶׁאֵין → that there is [י - ד - ע / —]לוֹ → to him מִמְּקוֹם → from the place of [ק - ו - ם]עֵרוּבוֹ → his eiruv [ע - ר - ב]אֶלָּא → except [ל - ו - ה / —]אַלְפַּיִם → two thousand [א - ל - ף]אַמָּה → cubits [א - מ - ה]אָמְרוּ → They said [א - מ - ר]לוֹ → to him אֵימָתַי → When [ע - ת - ה]בִּזְמַן → at a time [ז - מ - ן]שֶׁאֵין → that there is no בָּהּ → in it דִּיוּרִין → residents [ד - י - ר]אֲבָל → but יֶשׁ → there is [י - ש - ה / —]בָּהּ → in it דִּיוּרִין → residents [ד - י - ר]מְהַלֵּךְ → he may walk [ה - ל - ך]אֶת → [through] כֻּלָּהּ → all of it [כ - ל - ל]וְחוּצָה → and outside [ח - ו - ץ]לָהּ → of it אַלְפַּיִם → two thousand [א - ל - ף]