Leviticus 25:39-43 NKJV
‘And if one of your brethren who dwells by you becomes poor, and sells himself to you, you shall not compel him to serve as a slave. As a hired servant and a sojourner he shall be with you, and shall serve you until the Year of Jubilee. And then he shall depart from you—he and his children with him—and shall return to his own family. He shall return to the possession of his fathers. For they are My servants, whom I brought out of the land of Egypt; they shall not be sold as slaves. You shall not rule over him with rigor, but you shall fear your God.