Leviticus 25:40-43

BSB(i) 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. 42 Because the Israelites are My servants, whom I brought out of the land of Egypt, they are not to be sold as slaves. 43 You are not to rule over them harshly, but you shall fear your God.