Exodus
Chapters 21:1-6
King James Version, American Edition
1Now these are the judgments which thou shalt set before them.
2If thou buy a Hebrew servant, six years he shall serve: and in the seventh he shall go out free for nothing.
3If he came in by himself, he shall go out by himself: if he were married, then his wife shall go out with him.
4If his master have given him a wife, and she have borne him sons or daughters; the wife and her children shall be her master's, and he shall go out by himself.
5And if the servant shall plainly say, I love my master, my wife, and my children; I will not go out free:
6then his master shall bring him unto the judges; he shall also bring him to the door, or unto the doorpost; and his master shall bore his ear through with an awl; and he shall serve him for ever.