Leviticus 25:39-41

25:39 “‘If your brother becomes impoverished with regard to you so that he sells himself to you, you must not subject him to slave service. 25:40 He must be with you as a hired worker, as a resident foreigner; he must serve with you until the year of jubilee, 25:41 but then he may go free, he and his children with him, and may return to his family and to the property of his ancestors.

Leviticus 25:44

25:44 “‘As for your male and female slaves who may belong to you – you may buy male and female slaves from the nations all around you.