Exodus 21:2-6King James Version (KJV)
2 If thou buy an Hebrew servant, six years he shall serve: 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 were married, then his wife shall go out with him.
4 If his master have given him a wife, and she have 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 servant 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 for ever.