Indeed, those who have believed and emigrated and fought with their wealth and lives in the cause of Allāh and those who gave shelter and aided - they are allies of one another. But those who believed and did not emigrate - for you there is no support of them until they emigrate. And if they seek help of you for the religion, then you must help, except against a people between yourselves and whom is a treaty. And Allāh is Seeing of what you do.
Those who believed in Allah, accepted His Messenger, practised His sacred law, emigrated from the land of disbelief to the land of Islam, or to a place in which they can worship Allah safely, and strived in Allah’s path by spending their wealth and giving their lives to raise Allah’s Word, and those who hosted them in their homes and supported them – those emigrants and those locals who supported them are friends of one another in terms of providing support and assistance. As for those who believed in Allah but did not emigrate from the land of disbelief to the land of Islam, you have no obligation, O believers, to support and protect them until they emigrate in Allah’s path. If the disbelievers oppress them and they seek your help, then help them against their enemies, unless there is a pact between you and their enemy that is still in place. Allah sees what you do. No action of yours is hidden from Him and He will repay you for them.