Koran 47:35 - So do not faint and call for peace; you shall be the upper ones, and God is with you, and will not deprive you of your works.
And the Koran says Muslims can only make covenants (treaties) with non-Muslims at the Holy Mosque:
9:7 - How can there be a treaty with Allah and with His messenger for the idolaters save those with whom ye made a treaty at the Inviolable Place of Worship? So long as they are true to you, be true to them. Lo! Allah loveth those who keep their duty.
However, in another verse, non-Muslims are later prohibited from the Holy Mosque:
Koran 9:17 - It is not for the idolaters to inhabit God's places of worship, witnessing against themselves unbelief; those -- their works have failed them, and in the Fire they shall dwell forever.
In fact, if we go back to what v9:7 says, the first part of the verse is quite opposed to making treaties with non-Muslims.
The verse rhetorically asks, "[h]ow can there be a treaty with Allah and with His messenger for the idolaters...", answering that there can be no treaties between non-Muslims and Muslims except where previous treaties were already signed.
v9:17 prohibits renewing these treaties with unbelievers since unbelievers are prevented from returning to the Holy Mosque.