Quran 9:6 — Ultimatum (Bara'ah)
If one of the idol worshipers sought safe passage with you, you shall grant him safe passage, so that he can hear the word of GOD, then send him back to his place of security. That is because they are people who do not know.
[9:5] Once the Sacred Months are past, (and they refuse to make peace) you may kill the idol worshipers when you encounter them, punish them, and resist every move they make. If they repent and observe the Contact Prayers (Salat) and give the obligatory charity (Zakat), you shall let them go. GOD is Forgiver, Most Merciful.
[9:7] How can the idol worshipers demand any pledge from GOD and from His messenger? Exempted are those who have signed a peace treaty with you at the Sacred Masjid. If they honor and uphold such a treaty, you shall uphold it as well. GOD loves the righteous.