4:90
Except those who join [to] a group between you and between them (is) a treaty or those who come to you restraining their hearts that they fight you or they fight their people. And if (had) willed Allah, surely He (would have) given t over you, and surely they (would have) f So if they withdraw from you and (do) not fight against you and offer to you [the] peace then not (has) made Allah for you against them a way.
4:92
And not is for a believer that he kills a believer except (by) mistake. And whoever killed a believer (by) mistake, then freeing (of) a slave believing and blood money (is to be) paid to his family unless that they remit (as) charity. But if (he) was from a people hostile to you and he was a believer then freeing (of) a slave believing. And if (he) was from a people between you and between them, (is) a treaty, then blood money (is to be) paid to his family, and freeing (of) a slave believing. And whoever (does) not find, then fasting (for) two months consecutively, (seeking) repentance from Allah, and is Allah All-Knowing, All-Wise.
8:72
Indeed, those who believed and emigrated and strove hard with their wealth and their lives in (the) way (of) Allah and those who gave shelter and helped those - some of them (are) allies (of) another. But those who believed and (did) not emigrate, (it is) not for you from their protection (in) anything, until they emigrate. And if they seek your help in the religion, then upon you (is to) help them except against a people between you and between them (is) a treaty. And Allah of what you do (is) All-Seer.