These are the case laws that you should set before them:
When you buy a male Hebrew slave, he will serve you for six years. But in the seventh year, he will go free without any payment.
If he came in single, he will leave single. If he came in married, then his wife will leave with him.
If his master gave him a wife and she bore him sons or daughters, the wife and her children will belong to her master. He will leave single.
However, if the slave clearly states, "I love my master, my wife, and my children, and I don't want to go free,"
then his master will bring him before God. He will bring him to the door or the doorpost. There his master will pierce his ear with a pointed tool, and he will serve him as his slave for life.