Exodus 21:7-11
21:7 “If a man sells his daughter as a female servant, she will not go out as the male servants do.
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.
21:9 If he designated her for his son, then he will deal with her according to the customary rights of daughters.
21:10 If he takes another wife, he must not diminish the first one’s food, her clothing, or her marital rights.
21:11 If he does not provide her with these three things, then she will go out free, without paying money.