Exodus 21:2-4

Thomson(i) 2 If thou purchase a Hebrew servant, he shall serve thee six years, but in the seventh year he shall go out free without ransom. 3 If he came in alone, he shall go out alone; but if his wife came with him his wife shall go out with him. 4 And if his master hath given him a wife and she hath born him sons or daughters, the wife and the children shall belong to his master, and he shall go out alone.