39If a countryman among you becomes destitute and sells himself to you, then you must not force him into slave labor.
40Let him stay with you as a hired worker or temporary resident; he is to work for you until the Year of Jubilee.
41Then he and his children are to be released, and he may return to his clan and to the property of his fathers.
42Because the Israelites are My servants, whom I brought out of the land of Egypt, they are not to be sold as slaves.
— Leviticus 25:39-42