Exodus 21:2-11 - Laws About Slaves
2 If thou buy a servant that is an Hebrew, sixth years he shall serve, and the seventh he shall go out free paying nothing. 3 If he came alone, he shall go out alone: If he came married, his wife shall go out with him. 4 And if his master have given him a wife and she have borne him sons or daughters: then the wife and her children shall be her master's and he shall go out alone.
5 But and if the servant say, 'I love my master and my wife and my children, I will not go out free.' 6 Then let his master bring him unto the judges and set him to the door or the doorpost, and bore his ear through with an awl, and let him be his servant forever.
7 "If a man sell his daughter to be a servant: she shall not go out as the menservants do. 8 If she please not her master, so that he hath given her to no man to wife, then shall he let her go free: to sell her unto a strange nation shall he have no power, because he despised her. 9 If he have promised her unto his son to wife, he shall deal with her as men do with their daughters. 10 If he take him another wife, yet her food, raiment and duty of marriage shall he not minish. 11 If he do not these three unto her, then shall she go out free and pay no money.