Exodus 21:1-8

1 Now these are the rights which thou shalt set before them.
2 If thou should buy a Hebrew slave, he shall serve six years; and in the seventh he shall go out free for nothing.
3 If he came in by himself, he shall go out by himself; if he was married, then his wife shall go out with him.
4 If his master has given him a wife, and she has born him sons or daughters; the wife and her children shall be her master’s, and he shall go out by himself.
5 And if the slave shall plainly say, I love my master, my wife, and my children; I will not go out free.
6 Then his master shall bring him unto the judges; he shall also bring him to the door or unto the door post; and his master shall bore his ear through with an aul; and he shall serve him forever.
7 And if a man should sell his daughter to be a maidslave, she shall not go out as the menslaves do.
8 If she pleases not her master, who therefore took her not unto himself to wife, then it is permitted that she be ransomed; and he may not sell her unto a strange nation when he rejects her.