“If one of your fellow Israelites falls into poverty and is forced to sell himself to you, do not treat him as a slave.
Treat him instead as a hired worker or as a temporary resident who lives with you, and he will serve you only until the Year of Jubilee.
At that time he and his children will no longer be obligated to you, and they will return to their clans and go back to the land originally allotted to their ancestors.
The people of Israel are my servants, whom I brought out of the land of Egypt, so they must never be sold as slaves.
Show your fear of God by not treating them harshly.
“However, you may purchase male and female slaves from among the nations around you.
You may also purchase the children of temporary residents who live among you, including those who have been born in your land. You may treat them as your property,
passing them on to your children as a permanent inheritance. You may treat them as slaves, but you must never treat your fellow Israelites this way.
“Suppose a foreigner or temporary resident becomes rich while living among you. If any of your fellow Israelites fall into poverty and are forced to sell themselves to such a foreigner or to a member of his family,
they still retain the right to be bought back, even after they have been purchased. They may be bought back by a brother,
an uncle, or a cousin. In fact, anyone from the extended family may buy them back. They may also redeem themselves if they have prospered.