Hebrew Servants

2 “If you buy a Hebrew servant, he is to serve you for six years. But in the seventh year, he shall go free, without paying anything.

References for Exodus 21:2

3 If he comes alone, he is to go free alone; but if he has a wife when he comes, she is to go with him.
4 If his master gives him a wife and she bears him sons or daughters, the woman and her children shall belong to her master, and only the man shall go free.