Leviticus 25:40-50

40 Treat him as a hired hand or a guest among you. He will work for you until the Jubilee,
41 after which he and his children are set free to go back to his clan and his ancestral land.
42 Because the People of Israel are my servants whom I brought out of Egypt, they must never be sold as slaves.
43 Don't tyrannize them; fear your God.
44 "The male and female slaves which you have are to come from the surrounding nations; you are permitted to buy slaves from them.
45 You may also buy the children of foreign workers who are living among you temporarily and from their clans which are living among you and have been born in your land. They become your property.
46 You may will them to your children as property and make them slaves for life. But you must not tyrannize your brother Israelites.
47 "If a foreigner or temporary resident among you becomes rich and one of your brothers becomes poor and sells himself to the foreigner who lives among you or to a member of the foreigner's clan,
48 he still has the right of redemption after he has sold himself. One of his relatives may buy him back.
49 An uncle or cousin or any close relative of his extended family may redeem him. Or, if he gets the money together, he can redeem himself.
50 What happens then is that he and his owner count out the time from the year he sold himself to the year of Jubilee; the buy-back price is set according to the wages of a hired hand for that number of years.
Published by permission. Originally published by NavPress in English as THE MESSAGE: The Bible in Contemporary Language copyright 2002 by Eugene Peterson. All rights reserved.