Leviticus 25:31-33
25:31 The houses of villages, however, which have no wall surrounding them must be considered as the field of the land; they will have the right of redemption and must revert in the jubilee.
25:32 As for the cities of the Levites, the houses in the cities which they possess, the Levites must have a perpetual right of redemption.
25:33 Whatever someone among the Levites might redeem – the sale of a house which is his property in a city – must revert in the jubilee, because the houses of the cities of the Levites are their property in the midst of the Israelites.