Exodus 21:2-6
Exodus 21:2-6 KJV
If thou buy an Hebrew servant, six years he shall serve: and in the seventh he shall go out free for nothing. If he came in by himself, he shall go out by himself: if he were married, then his wife shall go out with him. 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. And if the servant shall plainly say, I love my master, my wife, and my children; I will not go out free: 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.