Leviticus 25:24

24And in all the country you possess, you shall allow a redemption of the land.

Leviticus 25:26-27

26If a man has no one to redeem it and then himself becomes prosperous and finds sufficient means to redeem it, 27let ahim calculate the years since he sold it and pay back the balance to the man to whom he sold it, and then return to his property.
Copyright information for ESV