Leviticus 25:47-49
47 “‘If an alien or a temporary resident among you becomes rich and one of your countrymen becomes poor and sells himself to the alien living among you or to a member of the alien’s clan,
48 he retains the right of redemption after he has sold himself. One of his relatives may redeem him:
49 An uncle or a cousin or any blood relative in his clan may redeem him. Or if he prospers, he may redeem himself.