surely those who believed and migrated and strove hard in the way of allah with their possessions and their lives and those that sheltered and helped them they alone are the true allies of one another. and those who believed but did not migrate you are under no obligation of alliance unless they migrate. and should they seek help from you in the matter of religion it is incumbent on you to provide help unless it be against a people with whom you have a pact. allah is cognizant of all that you do.
إن الذين آمنوا وهاجروا وجاهدوا بأموالهم وأنفسهم في سبيل الله والذين آووا ونصروا أولئك بعضهم أولياء بعض والذين آمنوا ولم يهاجروا ما لكم من ولايتهم من شيء حتى يهاجروا وإن استنصروكم في الدين فعليكم النصر إلا على قوم بينكم وبينهم ميثاق والله بما تعملون بصير