Exodus 21:7-11 (NIV)
"If a man sells his daughter as a servant, she is not to go free as menservants do. If she does not please the master who has selected her for himself, he must let her be redeemed. He has no right to sell her to foreigners, because he has broken faith with her. If he selects her for his son, he must grant her the rights of a daughter. If he marries another woman, he must not deprive the first one of her food, clothing and marital rights. If he does not provide her with these three things, she is to go free, without any payment of money."