Exodus 21:3 New Century Version (NCV)

If he is not married when he becomes your slave, he must leave without a wife. But if he is married when he becomes your slave, he may take his wife with him.

Exodus 21

Exodus 21:1-8