Leviticus 25:25-26

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,

Leviticus 25:48-49

25:48 after he has sold himself he retains a right of redemption. One of his brothers may redeem him, 25:49 or his uncle or his cousin may redeem him, or anyone of the rest of his blood relatives – his family – may redeem him, or if he prospers he may redeem himself.