Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
KJV

Exodus 21:3

If he came in by himself, he shall go out by himself: if he were married, then his wife shall go out with him.

Read in other translations