https://en.wikipedia.org/wiki/At-Tawba
Sūrat at-Tawbah (Arabic: سورة التوبة, "The Repentance"), also known as al-Barā'ah ("The Repudiation"),[1] is the ninth chapter of the Qur'an. It contains 129 verses and is one of the last Madinan chapters.
http://www.noblequran.com/translation/surah9.html
9. Surah At-Taubah (The Repentance)
1. Freedom from (all) obligations (is declared) from Allah and His Messenger () to those of the Mushrikun (polytheists, pagans, idolaters, disbelievers in the Oneness of Allah), with whom you made a treaty.
2. So travel freely (O Mushrikun - see V.2:105) for four months (as you will) throughout the land, but know that
you cannot escape (from the Punishment of) Allah, and Allah will disgrace the disbelievers.
3. And a declaration from Allah and His Messenger to mankind on the greatest day (the 10th of Dhul-Hijjah - the 12th month of Islamic calendar) that Allah is free from (all) obligations to the Mushrikun (see V.2:105) and so is His Messenger. So if you (Mushrikun) repent, it is better for you, but if you turn away, then know that you
cannot escape (from the Punishment of) Allah. And give tidings (O Muhammad ) of a
painful torment to those who disbelieve.
4. Except those of the Mushrikun with whom you have a treaty, and who have not subsequently failed you in aught, nor have supported anyone against you. So fulfill their treaty to them to the end of their term. Surely Allah loves Al- Mattaqun (the pious - see V.2:2).
5. Then when the Sacred Months (the Ist, 7th, 11th, and 12th months of the Islamic calendar) have passed, then
kill the Mushrikun
(see V.2:105) wherever you find them, and capture them and besiege them, and prepare for them each and every ambush. But if they repent and perform As-Salat (Iqamat-as-Salat), and
give Zakat, then leave their way free. Verily, Allah is Oft-Forgiving, Most Merciful.
6. And if anyone of the Mushrikun (polytheists, idolaters, pagans, disbelievers in the Oneness of Allah) seeks your protection then grant him protection, so that he may hear the Word of Allah (the Qur'an), and then escort him to where he can be secure, that is because they are men who know not.
7. How can there be a covenant with Allah and with His Messenger for the Mushrikun (polytheists, idolaters, pagans, disbelievers in the Oneness of Allah) except those with whom you made a covenant near Al-Masjid-al-Haram (at Makkah)? So long, as they are true to you, stand you true to them. Verily, Allah loves Al-Muttaqun (the pious - see V.2:2).
8. How (can there be such a covenant with them) that when you are overpowered by them, they regard not the ties, either of kinship or of covenant with you? With (good words from) their mouths they please you, but their hearts are averse to you, and most of them are Fasiqun (rebellious, disobedient to Allah).
9. They have purchased with the Ayat (proofs, evidences, verses, lessons, signs, revelations, etc.) of Allah a little gain, and they hindered men from His Way; evil indeed is that which they used to do.
10. With regard to a believer, they respect not the ties, either of kinship or of covenant! It is they who are the transgressors.
11. But if they repent, perform As-Salat (Iqamat-as-Salat) and
give Zakat, then they are your brethren in religion. (In this way) We explain the Ayat (proofs, evidences, verses, lessons, signs, revelations, etc.) in detail for a people who know.
12. But if they violate their oaths after their covenant, and
attack your religion with disapproval and criticism then fight
(you) the leaders of disbelief (chiefs of Quraish - pagans of Makkah) - for surely their oaths are nothing to them - so that they may stop (evil actions).
13. Will you not
fight
a people who have violated their oaths (pagans of Makkah) and intended to expel the Messenger, while they did attack you first? Do you fear them? Allah has more right that you should fear Him, if you are believers.
14.
Fight
against them so that Allah will
punish them by your hands and disgrace them and give you
victory over them and heal the breasts of a believing people,
15. And remove the anger of their (believers') hearts. Allah accepts the repentance of whom He wills. Allah is All-Knowing, All-Wise.
16. Do you think that you shall be left alone while Allah has not yet tested those among you who have
striven hard and fought
and have not taken Walijah [(Batanah - helpers, advisors and consultants from disbelievers, pagans, etc.) giving openly to them their secrets] besides Allah and His Messenger, and the believers. Allah is Well-Acquainted with what you do.
17. It is not for the Mushrikun (polytheists, idolaters, pagans, disbelievers in the Oneness of Allah), to maintain the Mosques of Allah (i.e. to pray and worship Allah therein, to look after their cleanliness and their building, etc.), while they witness against their ownselves of disbelief. The works of such are in vain and in
Fire shall they abide.