1 The Lord gave Moses the following laws for his people:
2 If you buy a Hebrew slave, he must remain your slave for six years. But in the seventh year you must set him free, without cost to him.
3 If he was single at the time you bought him, he alone must be set free. But if he was married at the time, both he and his wife must be given their freedom.
4 If you give him a wife, and they have children, only the man himself must be set free; his wife and children remain the property of his owner.
5 But suppose the slave loves his wife and children so much that he won't leave without them.
6 Then he must stand beside either the door or the doorpost at the place of worship, while his owner punches a small hole through one of his ears with a sharp metal rod. This makes him a slave for life.
7 A young woman who was sold by her father doesn't gain her freedom in the same way that a man does.