Leviticus 25:23-27

25:23 The land must not be sold without reclaim because the land belongs to me, for you are foreigners and residents with me. 25:24 In all your landed property you must provide for the right of redemption of the land.

25:25 “‘If your brother becomes impoverished and sells some of his property, his near redeemer is to come to you and redeem what his brother sold. 25:26 If a man has no redeemer, but he prospers and gains enough for its redemption, 25:27 he is to calculate the value of the years it was sold, refund the balance to the man to whom he had sold it, and return to his property.