Exodus 21:1-6 MSG

1 "These are the laws that you are to place before them:
2 "When you buy a Hebrew slave, he will serve six years. The seventh year he goes free, for nothing.
3 If he came in single he leaves single. If he came in married he leaves with his wife.
4 If the master gives him a wife and she gave him sons and daughters, the wife and children stay with the master and he leaves by himself.
5 But suppose the slave should say, 'I love my master and my wife and children - I don't want my freedom,'
6 then his master is to bring him before God and to a door or doorpost and pierce his ear with an awl, a sign that he is a slave for life.