Leviticus 25:51

BSB
“If many years remain, he must pay for his redemption in proportion to his purchase price.”