Exodus 21:11
If he fails her regarding these three rights, she will go free without any payment.
If he takes another for himself, he will not diminish her food, clothing, or marital rights.
If he intends her for his son, he will deal with her according to the rights of daughters.
If she does not please the master who intended her for himself, he shall let another redeem her; he is not to sell her to foreigners because he has broken faith with her.
his master shall bring him to God; he will take him to the door or the doorpost, then his master will pierce his ear with an awl, and he shall serve him for life.
But if the slave says: ‘I love my wife, my master, and my children, I will not go free,’
If his master gives him a wife and she bears him sons or daughters, the wife and her children belong to his master; he will leave them to their own care.
If he came alone, he would leave alone. If he were married, his wife would accompany him.
When you buy a Hebrew slave, he will serve you for six years, and in the seventh year, he shall go free, with nothing to pay.