Lev 25:26-27

26If the person has no one to redeem it, but then prospers and finds sufficient means to do so,27the years since its sale shall be computed and the difference shall be refunded to the person to whom it was sold, and the property shall be returned.