Bava Basra2: 7
מַרְחִיקִין אֶת הָאִילָן מִן הָעִיר עֶשְׂרִים וְחָמֵשׁ אַמָּה, וּבֶחָרוּב וּבַשִּׁקְמָה — חֲמִשִּׁים אַמָּה. אַבָּא שָׁאוּל אוֹמֵר: כָּל אִילַן סְרָק — חֲמִשִּׁים אַמָּה. אִם הָעִיר קָדְמָה — קוֹצֵץ וְאֵינוֹ נוֹתֵן דָּמִים; וְאִם הָאִילָן קָדַם — קוֹצֵץ וְנוֹתֵן דָּמִים. סָפֵק זֶה קָדַם סָפֵק זֶה קָדַם — קוֹצֵץ וְאֵינוֹ נוֹתֵן דָּמִים.
One must distance a tree twenty-five cubits from a town; and in [the case of] carob or sycamore trees, fifty cubits. Abba Shaul says: Any nonfruit-bearing tree [requires] fifty cubits. If the town was there first, he cuts down [the tree] and does not pay compensation; but if the tree was there first, he cuts [it] down and pays compensation. [If there is] doubt [whether] this one was first or that one, he cuts [it] down and does not pay compensation.