This precept is sweetly enforced in many places of the old Testament. Deuteronomy 10:19; Exodus 23:9.
Related Commentaries of Exodus 22:21
Exodus 22:21
21 Thou shalt neither vex a stranger, nor oppress him: for ye were strangers in the land of Egypt.