Leviticus 25:44-49
English Standard Version
Chapter 25
44As for your male and female slaves whom you may have: you may buy male and female slaves from among the nations that are around you. 45You may also buy from among the strangers who sojourn with you and their clans that are with you, who have been born in your land, and they may be your property. 46You may bequeath them to your sons after you to inherit as a possession forever. You may make slaves of them, but over your brothers the people of Israel you shall not rule, one over another ruthlessly.
47"If a stranger or sojourner with you becomes rich, and your brother beside him becomes poor and sells himself to the stranger or sojourner with you or to a member of the stranger 's clan,
48then after he is sold he may be redeemed. One of his brothers may redeem him,
49or his uncle or his cousin may redeem him, or a close relative from his clan may redeem him. Or if he grows rich he may redeem himself.