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

Exodus 22:20

And ye shall not hurt a stranger, nor afflict him; for ye were strangers in the land of Egypt.

Read in other translations