Leviticus 25:47-49

25:47 “‘If a resident foreigner who is with you prospers and your brother becomes impoverished with regard to him so that he sells himself to a resident foreigner who is with you or to a member of a foreigner’s family, 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.