Leviticus 25:39

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.

Leviticus 25:47

25:47 “‘If a resident foreigner who is with you prospers and your brother becomes impoverished with regard to him so that he sells himself to a resident foreigner who is with you or to a member of a foreigner’s family,