Leviticus 25:47

47 Suppose a foreigner living with you becomes rich, while some Israelites become poor and sell themselves as slaves to that foreigner or to a member of that foreigner's family.

Leviticus 25:47 In-Context

45 You may also buy the children of the foreigners who are living among you. Such children born in your land may become your property,
46 and you may leave them as an inheritance to your children, whom they must serve as long as they live. But you must not treat any Israelites harshly.
47 Suppose a foreigner living with you becomes rich, while some Israelites become poor and sell themselves as slaves to that foreigner or to a member of that foreigner's family.
48 After they are sold, they still have the right to be bought back. A brother
49 or an uncle or a cousin or another close relative may buy them back; or if they themselves earn enough, they may buy their own freedom.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.