Leviticus 25:24-34
24 Throughout the country that you hold as a possession, you must provide for the redemption of the land.
25 “‘If one of your countrymen becomes poor and sells some of his property, his nearest relative is to come and redeem what his countryman has sold.
26 If, however, a man has no one to redeem it for him but he himself prospers and acquires sufficient means to redeem it,
27 he is to determine the value for the years since he sold it and refund the balance to the man to whom he sold it; he can then go back to his own property.
28 But if he does not acquire the means to repay him, what he sold will remain in the possession of the buyer until the Year of Jubilee. It will be returned in the Jubilee, and he can then go back to his property.
29 “‘If a man sells a house in a walled city, he retains the right of redemption a full year after its sale. During that time he may redeem it.
30 If it is not redeemed before a full year has passed, the house in the walled city shall belong permanently to the buyer and his descendants. It is not to be returned in the Jubilee.
31 But houses in villages without walls around them are to be considered as open country. They can be redeemed, and they are to be returned in the Jubilee.
32 “‘The Levites always have the right to redeem their houses in the Levitical towns, which they possess.
33 So the property of the Levites is redeemable—that is, a house sold in any town they hold—and is to be returned in the Jubilee, because the houses in the towns of the Levites are their property among the Israelites.
34 But the pastureland belonging to their towns must not be sold; it is their permanent possession.