Leviticus 25:29-31

Thomson(i) 29 And if any person sell a dwelling house in a walled city, he shall have the right of redeeming it till the term expire. The term for redemption shall be a year. 30 And if it be not redeemed till the whole year expire, the house which is in a walled city, shall be confirmed for ever to the purchaser. And he shall not go out in the jubilee. 31 But the houses which are in villages, unsurrounded with walls, shall be accounted as the fields in the country, and shall be always subject to redemption, and go out in the jubilee.