25 If one of your fellow Israelites falls into poverty and is forced to sell some family land, then a close relative should buy it back for him. 26 If there is no close relative to buy the land, but the person who sold it gets enough money to buy it back, 27 he then has the right to redeem it from the one who bought it. The price of the land will be discounted according to the number of years until the next Year of Jubilee. In this way the original owner can then return to the land. 28 But if the original owner cannot afford to buy back the land, it will remain with the new owner until the next Year of Jubilee. In the jubilee year, the land must be returned to the original owners so they can return to their family land. 29 "Anyone who sells a house inside a walled town has the right to buy it back for a full year after its sale. During that year, the seller retains the right to buy it back. 30 But if it is not bought back within a year, the sale of the house within the walled town cannot be reversed. It will become the permanent property of the buyer. It will not be returned to the original owner in the Year of Jubilee.

Matthew Henry's Commentary on Leviticus 25:25-30

Commentary on Leviticus 25:23-34

(Read Leviticus 25:23-34)

If the land were not redeemed before the year of jubilee, it then returned to him that sold or mortgaged it. This was a figure of the free grace of God in Christ; by which, and not by any price or merit of our own, we are restored to the favour of God. Houses in walled cities were more the fruits of their own industry than land in the country, which was the direct gift of God's bounty; therefore if a man sold a house in a city, he might redeem it only within a year after the sale. This encouraged strangers and proselytes to come and settle among them.