These are the ordinances that you shall set before them:
When you buy a male Hebrew slave, he shall serve six years, but in the seventh he shall go out a free person, without debt.
If he comes in single, he shall go out single; if he comes in married, then his wife shall go out with him.
If his master gives him a wife and she bears him sons or daughters, the wife and her children shall be her master's and he shall go out alone.
But if the slave declares, "I love my master, my wife, and my children; I will not go out a free person,"
then his master shall bring him before God. a He shall be brought to the door or the doorpost; and his master shall pierce his ear with an awl; and he shall serve him for life.
When a man sells his daughter as a slave, she shall not go out as the male slaves do.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved. (New Revised Standard Bible Version Online)