Leviticus 25:39-41

ISV(i) 39 “If your brother with you becomes so poor that he sells himself to you, you are not to make him serve like a bond slave. 40 Instead, he is to serve with you like a hired servant or a traveler who lives with you, until the year of jubilee. 41 Then he and his children with him may leave to return to his family and his ancestor’s inheritance.