At-Tawbah 9:7
كَيْفَ يَكُونُ لِلْمُشْرِكِينَ عَهْدٌ عِندَ ٱللَّهِ وَعِندَ رَسُولِهِۦٓ إِلَّا ٱلَّذِينَ عَـٰهَدتُّمْ عِندَ ٱلْمَسْجِدِ ٱلْحَرَامِ ۖ فَمَا ٱسْتَقَـٰمُوا۟ لَكُمْ فَٱسْتَقِيمُوا۟ لَهُمْ ۚ إِنَّ ٱللَّهَ يُحِبُّ ٱلْمُتَّقِينَ
Kayfa yakoonu lilmushrikeena AAahdun AAindaAllahi waAAinda rasoolihi illa allatheena AAahadtumAAinda almasjidi alharami fama istaqamoolakum fastaqeemoo lahum inna Allaha yuhibbualmuttaqeen
How can there be for the polytheists a treaty in the sight of Allāh and with His Messenger, except for those with whom you made a treaty at al-Masjid al-Ḥarām? So as long as they are upright toward you, be upright toward them. Indeed, Allāh loves the righteous [who fear Him].
How can the Mushriks have a treaty with Allah and His Messenger? Except those with whom you made a treaty near Al-Masjid-ul-Harām . Then, as long as they remain straight with you, you too remain straight with them. Surely, Allah loves the God-fearing.