Exodus 21:2-6

BBE(i) 2 If you get a Hebrew servant for money, he is to be your servant for six years, and in the seventh year you are to let him go free without payment. 3 If he comes to you by himself, let him go away by himself: if he is married, let his wife go away with him. 4 If his master gives him a wife, and he gets sons or daughters by her, the wife and her children will be the property of the master, and the servant is to go away by himself. 5 But if the servant says clearly, My master and my wife and children are dear to me; I have no desire to be free: 6 Then his master is to take him to the gods of the house, and at the door, or at its framework, he is to make a hole in his ear with a sharp-pointed instrument; and he will be his servant for ever.