Exodus 21:4 New International Version (NIV)

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.

Exodus 21

Exodus 21:1-13