Exodus 21:1-4King James Version (KJV)
21 Now these are the judgments which thou shalt set before them.
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.