Leviticus 25:38-41
English Standard Version
39"If your brother becomes poor beside you and sells himself to you, you shall not make him serve as a slave:
40he shall be with you as a hired worker and as a sojourner. He shall serve with you until the year of the jubilee.
41Then he shall go out from you, he and his children with him, and go back to his own clan and return to the possession of his fathers.