Exodus 21:4

But if his lord gave him a wife, and she has borne sons and daughters, the woman and her children shall belong to her lord. Yet still, he himself will go out with his clothing

Other versions

King James Version

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.

English Standard Version

If his master gives him a wife and she bears him sons or daughters, the wife and her children shall be her master's, and he shall go out alone.

New International Version

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.