"These are the laws1 you are to set before them:
References for Exodus 21:1
"If you buy a Hebrew servant,2 he is to serve you for six years. But in the seventh year, he shall go free,3 without paying anything.
References for Exodus 21:2
If he comes alone, he is to go free alone; but if he has a wife when he comes, she is to go with him.
If his master gives him a wife and she bears him sons or daughters, the woman and her children shall belong to her master, and only the man shall go free.
"But if the servant declares, 'I love my master and my wife and children and do not want to go free,'4
References for Exodus 21:5
then his master must take him before the judges.5 He shall take him to the door or the doorpost and pierce6 his ear with an awl. Then he will be his servant for life.7
References for Exodus 21:6
"If a man sells his daughter as a servant, she is not to go free as menservants do.
If she does not please the master who has selected her for himself, he must let her be redeemed. He has no right to sell her to foreigners, because he has broken faith with her.
References for Exodus 21:8
If he selects her for his son, he must grant her the rights of a daughter.
If he marries another woman, he must not deprive the first one of her food, clothing and marital rights.8
References for Exodus 21:10
If he does not provide her with these three things, she is to go free, without any payment of money.