Arcana Coelestia #9268
9268. 'And a sojourner you shall not oppress' means that those with a desire to receive instruction in the Church's truths must not be molested with evils of life. This is clear from the meaning of 'a sojourner' as one who desires to receive instruction in the Church's truths, dealt with in 8007, 8013, 9196; and from the meaning of 'oppressing' as molesting with evils of life, dealt with in 9196.
Arcana Coelestia #8007
8007. 'And when a sojourner sojourns with you' means those who have received instruction in the Church's truth and good, and have accepted them. This is clear from the meaning of 'a sojourner' as those who received instruction in and accepted the statutes and laws of the Church, dealt with in 2025, 4444, 7908. The words 'when he sojourns with you' are used because 'sojourning' means receiving instruction and living, 1463, 3672, so that' sojourners sojourning with them' means not only those who received instruction in the Church's truth and good and accepted them, but also those who led lives in keeping with them.