Leviticus 25:39-41

BSB(i) 39 If a countryman among you becomes destitute and sells himself to you, then you must not force him into slave labor. 40 Let him stay with you as a hired worker or temporary resident; he is to work for you until the Year of Jubilee. 41 Then he and his children are to be released, and he may return to his clan and to the property of his fathers.