Leviticus 25:51

Amplified Bible (AMP)
If there are still many years [before the Year of Jubilee], in proportion to them he must refund [to the purchaser] part of the price of his sale for his redemption and release.

Read Leviticus 25:51 in other translations