Those who emigrated

Those who believed, migrated, and struggled with their wealth and lives in Allah’s cause, and those who sheltered and supported them, these are allies to one another. But those who believed without migrating, you owe them no protection until they do. However, if they seek your help in faith, you must aid them, except against a people with whom you have a treaty.

8:72Lo! those who believed and left their homes and strove with their wealth and their lives for the cause of Allah, and those who took them in and helped them: these are protecting friends one of another. And those who believed but did not leave their homes, ye have no duty to protect them till they leave their homes; but if they seek help from you in the matter of religion then it is your duty to help (them) except against a folk between whom and you there is a treaty. Allah is Seer of what ye do.