Exodus
Chapters 21:1-4
Amplified Bible
1NOW THESE are the ordinances you [Moses] shall set before [the Israelites].
2If you buy a Hebrew servant [as the result of debt or theft], he shall serve six years, and in the seventh he shall go out free, paying nothing. [Lev. 25:39.]
3If he came [to you] by himself, he shall go out by himself; if he came married, then his wife shall go out with him.
4If his master has given him a wife and she has borne him sons or daughters, the wife and her children shall be her master's, and he shall go out [of your service] alone.