The Talmud records ten special conditions (תנאים) instituted regarding Jerusalem, including that it could not be sold, that no graves could be kept within it, and that it belonged to no single tribe.
עֲשָׂרָה דְּבָרִים נֶאֶמְרוּ בִּירוּשָׁלַיִם: אֵין הַבַּיִת חָלוּט בָּהּ; וְאֵינָהּ מְבִיאָה עֶגְלָה עֲרוּפָה; וְאֵינָהּ נַעֲשֵׂית עִיר הַנִּדַּחַת; וְאֵינָהּ מִטַּמְּאָה בִּנְגָעִים; וְאֵין מוֹצִיאִין בָּהּ זִיזִין וּגְזוּזְטְרָאוֹת; וְאֵין עוֹשִׂין בָּהּ אַשְׁפַּתּוֹת; וְאֵין עוֹשִׂין בָּהּ כִּבְשׁוֹנוֹת; וְאֵין עוֹשִׂין בָּהּ גַּנּוֹת וּפַרְדֵּסוֹת – חוּץ מִגַּנּוֹת וְורָדִין שֶׁהָיוּ מִימוֹת נְבִיאִים הָרִאשׁוֹנִים; וְאֵין מְגַדְּלִים בָּהּ תַּרְנְגוֹלִין; וְאֵין מְלִינִין בָּהּ אֶת הַמֵּת. אֵין הַבַּיִת חָלוּט בָּהּ – דִּכְתִיב: ״וְקָם הַבַּיִת אֲשֶׁר לוֹ חוֹמָה לַצְּמִתֻת לַקֹּנֶה אֹתוֹ לְדֹרֹתָיו״, וְקָסָבַר לֹא נִתְחַלְּקָה יְרוּשָׁלַיִם לִשְׁבָטִים.
§ The mishna teaches that one may not raise chickens in Jerusalem. The Gemara cites a baraita that contains a list of other halakhot that are unique to Jerusalem. Ten matters were stated with regard to Jerusalem: A house situated in Jerusalem does not become irredeemable one year after its sale. Those who sell houses in other walled cities have the right to buy back their property for one year after the transaction. If they fail to do so, the house becomes the permanent possession of the buyer (see Leviticus 25:29–30). This halakha does not apply to houses in Jerusalem. And its Elders do not bring a heifer whose neck is broken as required when a murder victim is found near a city and the murderer is unknown (see Deuteronomy 21:1–9); and it cannot become an idolatrous city (see Deuteronomy 13:13–19). The baraita continues its list: And a house in Jerusalem cannot become ritually impure with the impurity of leprous sores; and one may not build out projections or balconies [gezuztraot] from houses that are in it; and one may not establish garbage dumps in Jerusalem; and one may not build kilns in it; and one may not plant gardens and orchards [pardesot] in it, except for the rose gardens that were already there from the times of the early prophets; and one may not raise chickens in it; and finally, one may not leave a corpse overnight in Jerusalem. The Gemara discusses these ten halakhot pertaining to Jerusalem, one by one: A house situated in it does not become irredeemable one year after its sale. The reason is that it is written: “And if it is not redeemed within the space of a full year, then the house that is in the walled city shall be made sure in perpetuity to him who bought it, throughout his generations” (Leviticus 25:30). And the tanna who taught this baraita maintains that Jerusalem was not apportioned to any single one of the tribes of Israel; rather, it is considered common property. Since no one has ancestral ownership of any house in Jerusalem, its houses cannot be sold permanently.