“If a man sells his daughter as a servant, she is not to go free as male servants 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.Exodus 21:8 NIV
then his master must take him before the judges. He shall take him to the door or the doorpost and pierce his ear with an awl. Then he will be his servant for life.Exodus 21:6 NIV