Exodus 21:4

21:4 If his master gave him a wife, and she bore sons or daughters, the wife and the children will belong to her master, and he will go out by himself.

Exodus 21:8

21:8 If she does not please her master, who has designated her for himself, then he must let her be redeemed. He has no right to sell her to a foreign nation, because he has dealt deceitfully with her.