Exodus 21:2-11 - Laws About Slaves
2 "When you acquire a Hebrew servant, he is to serve for six years, and in the seventh he is to go out a free man without paying anything. 3 If he came in by himself, he is to go out by himself. If he was married, his wife is to go out with him. 4 If his master gives him a wife and she bears him sons or daughters, the wife and children belong to her master, and he is to go out by himself.
5 But if the servant, in fact, says, "I love my master, my wife, and my children, and I won't go out a free man,' 6 then his master is to bring him before the judges and he is to bring him to the door or to the doorpost. His master is to pierce his ear with an awl, and he is to serve him permanently.
7 "When a man sells his daughter as a servant, she won't go out as the male servants do. 8 If she's displeasing to her master who selected her for himself, he must let her be redeemed. He does not have the right to sell her to foreign people, because he has dealt unfairly with her. 9 If he has selected her for his son, he is to treat her according to the ordinance for daughters. 10 If he takes another woman for himself, he may not withhold from the first her food, her clothing, or her marital rights. 11 If he does not do these three things for her, she may go out without paying anything at all."