Leviticus 25: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.