If he was not married before he became your slave, and if he marries someone while he is your slave, his wife is not to be set free with him. But if he was married before he became your slave, you must free both him and his wife.