Allah does not forbid you from those who do not fight you because of religion and do not expel you from your homes – from being righteous toward them and acting justly toward them. Indeed, Allah loves those who act justly.
Allah only forbids you from those who fight you because of religion and expel you from your homes and aid in your expulsion – [forbids] that you make allies of them. And whoever makes allies of them, then it is those who are the wrongdoers.
1- See footnote to verse 1 of this surah.