Leviticus 25
26 Ref If a man has no one to redeem it, and he becomes prosperous and finds sufficient means to redeem it;
27 then let him reckon the years since the sale of it, and restore the surplus to the man to whom he sold it; and he shall return to his property.
28 Ref But if he isn't able to get it back for himself, then what he has sold shall remain in the hand of him who has bought it until the Year of Jubilee: and in the Jubilee it shall be released, and he shall return to his propery.