25 'If one of your brethren becomes poor, and has sold some of his possession, and if his redeeming relative comes to redeem it, then he may redeem what his brother sold. 26 Or if the man has no one to redeem it, but he himself becomes able to redeem it, 27 then let him count the years since its sale, and restore the remainder to the man to whom he sold it, that he may return to his possession. 28 But if he is not able to have it restored to himself, then what was sold shall remain in the hand of him who bought it until the Year of Jubilee; and in the Jubilee it shall be released, and he shall return to his possession. 29 If a man sells a house in a walled city, then he may redeem it within a whole year after it is sold; within a full year he may redeem it. 30 But if it is not redeemed within the space of a full year, then the house in the walled city shall belong permanently to him who bought it, throughout his generations. It shall not be released in the 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.