24Thus for every piece of property you possess, you must provide for the redemption of the land.
25If your brother becomes impoverished and sells some of his property, his nearest of kin may come and redeem what his brother has sold.
26Or if a man has no one to redeem it for him, but he prospers and acquires enough to redeem his land,
27he shall calculate the years since its sale, repay the balance to the man to whom he sold it, and return to his property.
28But if he cannot obtain enough to repay him, what he sold will remain in possession of the buyer until the Year of Jubilee. In the Jubilee, however, it is to be released, so that he may return to his property.
— Leviticus 25:24-28