Bava Batra 1:4
משנה: כּוֹפִין אוֹתוֹ לִבְנוֹת בֵּית שַׁעַר וְדֶלֶת לֶחָצֵר.
Mishnah: They compel him to build a gatehouse and a door for the courtyard.
רַבָּן שִׁמְעוֹן בֶּן גַּמְלִיאֵל אוֹמֵר לֹא כָל הַחֲצֵירוֹת רְאוּיוֹת לְבֵית שַׁעַר.
Rabban Shimon ben Gamliel says: not all courtyards are fit for a gatehouse.
כּוֹפִין אוֹתוֹ לִבְנוֹת לָעִיר חוֹמָה וּדְלָתַיִם וּבְרִיחַ.
They compel him to build for the city a wall, double doors, and a bolt.
רַבָּן שִׁמְעוֹן בֶּן גַּמְלִיאֵל אוֹמֵר לֹא כָל הָעֲיָירוֹת רְאוּיוֹת לְחוֹמָה.
Rabban Shimon ben Gamliel says: not all towns are fit for a wall.
כַּמָּה יְהֵא בָעִיר וִיהֵא כְאַנְשֵׁי הָעִיר.
How long must one be in the city to be as one of the city's people?
שְׁנֵים עָשָׂר חוֹדֶשׁ.
Twelve months.
קָנָה בָהּ בֵּית דִּירָה הֲרֵי הוּא כְאַנְשֵׁי הָעִיר מִיַּד.
If he bought a dwelling there, he is as one of the city's people immediately.
הלכה: כּוֹפִין אוֹתוֹ לִבְנוֹת כול׳.
Halachah: 'They compel him to build,' etc.
אָמַר רִבִּי לָא.
Rabbi La said:
כֵּינִי.
Indeed, such is the way:
אוֹרְחָא דְּמָאן דְּמִתְפַּרְנֵס מַבְנֵי לֵיהּ שׁוּר.
of one who is well provided for, to build himself a wall;
שֶׁנֶּאֱמַר הוֹן עָשִׁיר קִרְיַת עוּזּוֹ וגו׳.
as it is said: 'The rich man's wealth is his strong city,' etc.
תַּנֵּי.
It was taught [in a beraita]:
שָׁהָה שָׁם שְׁלֹשִׁים יוֹם הֲרֵי הוּא כְאַנְשֵׁי הָעִיר לְקוּפָּה.
One who stayed there thirty days is as one of the city's people for the kupa (communal charity fund).
לִכְסוּת שִׁשָּׁה חֳדָשִׁים.
For clothing — six months.
לְפִסִים וּלְזִימִיּוֹת שְׁנֵים עָשָׂר חוֹדֶשׁ.
For pesim and zimiyot — twelve months.
וּבָתָר כָּל הִלֵּין מִילִּין אִיתְמַר לְפִסִים וּלְזִימִיּוֹת שְׁנֵים עָשָׂר חוֹדֶשׁ.
But after all these words — with regard to what was 'for pesim and zimiyot — twelve months' stated?
אָמַר רִבִּי יוֹסֵי בֵּירִבִּי בּוּן.
Rabbi Yosei bei Rabbi Bun said:
לְחִיטֵּי הַפֶּסַח בֵּין לִישָּׂא בֵין לִיתֵּן.
For the wheat of Pesach — whether to bear [its burden] or to be given [from it].