Êxodo 21

2If thou buy an Hebrew servant, six years he shall serve: and in the seventh he shall go out free for nothing.
4If 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.