Exodus 21:6-9
English Standard Version
7"When a man sells his daughter as a slave, she shall not go out as the male slaves do.
8If she does not please her master, who has designated her for himself, then he shall let her be redeemed. He shall have no right to sell her to a foreign people, since he has broken faith with her.
9If he designates her for his son, he shall deal with her as with a daughter.