كَيْفَ يَكُونُ لِلْمُشْرِكِينَ عَهْدٌ عِندَ ٱللَّهِ وَعِندَ رَسُولِهِۦٓ إِلَّا ٱلَّذِينَ عَٰهَدتُّمْ عِندَ ٱلْمَسْجِدِ ٱلْحَرَامِ ۖ فَمَا ٱسْتَقَٰمُوا۟ لَكُمْ فَٱسْتَقِيمُوا۟ لَهُمْ ۚ إِنَّ ٱللَّهَ يُحِبُّ ٱلْمُتَّقِينَ٧
How can the polytheists have a treaty with Allah and with His Messenger, except those whom you made a treaty with at the Sacred Mosque? Should they fulfill their pledge to you, fulfill your pledge to them, for Allah loves those who fear Him.
[ ↗ Study from physical print edition ]How can there be for the polytheists a treaty in the sight of Allah and with His Messenger, except for those with whom you made a treaty at al-Masjid al-Haram? So as long as they are upright toward you, be upright toward them. Indeed, Allah loves the righteous [who fear Him].
[ ↗ Study from physical print edition ]7. It is not correct for those who associate partners with Allah to have a treaty and an assurance of protection from Allah and His Messenger, except for the treaty you made with those idolaters at the Sacred Mosque in the Treaty of Al-Ḥudaybiyyah. As long as they uphold the treaty with you and do not break it, then you should also not break it. Allah loves those of His servants who are mindful of Him by fulfilling His instructions and avoiding His prohibitions.
How can the idolaters have a pact with God and His Messenger — they cannot —while they disbelieve in God and His Messenger acting treacherously; except for those with whom you made a pact at the Sacred Mosque? the day of al-Hudaybiyya — these were Quraysh for whom an exception was made earlier Q. 94. So long as they are true to you keeping to the pact and not breaking it be true to them by fulfilling it fa-mā ‘so long as’ the mā is a conditional particle. Truly God loves the God-fearing the Prophet s had kept to the pact made with them until they broke it by supporting the Banū Bakr against Khuzā‘a.
Uphold truth and commit no excess or injustice even against disbelievers is the teaching of Qur'anThis statement of the Qur'an provides guidance for Muslims that they should never surrender truth and justice even when they are dealing with confronting enemies. Whenever they have to take up an issue with them, they are required not to slip into taking exaggerated approaches and stances against them. This is as it has been demonstrated in these verses where full consideration has been given to the case of the disbelievers of Makkah. The fact was that most of them had broken their pledge. Naturally, when something like this happens in that setting, people tend to make a sweeping allegation against every-one. But, the Holy Qur'an, by saying: إِلَّا الَّذِينَ عَاهَدتُّمْ عِندَ الْمَسْجِدِ الْحَرَامِ (except those with whom you made a treaty near al-masjid-al-Haram), has exempted those who had not broken their pledge. In fact, it has ordered that Muslims should stay firm on their commitment as long as the others remain committed and faithful to their pledge. The breach of trust committed by other people should in no case influence their stance whereby they themselves may be led to become breakers of the pledge given to them.
Tafsir al-Qurtubi [The Compendium of Legal Rulings]
تفسير القرطبي (الجامع لأحكام القرآن)قَوْلُهُ تَعَالَى: ﴿كَيْفَ يَكُونُ لِلْمُشْرِكِينَ عَهْدٌ عِنْدَ اللَّهِ وَعِنْدَ رَسُولِهِ إِلَّا الَّذِينَ عاهَدْتُمْ عِنْدَ الْمَسْجِدِ الْحَرامِ﴾ كَيْفَ هُنَا لِلتَّعَجُّبِ، كَمَا تَقُولُ: كَيْفَ يَسْبِقُنِي فُلَانٌ أَيْ لَا يَنْبَغِي أَنْ يَسْبِقَنِي. وَ "عَهْدٌ" اسْمُ يَكُونُ. وَفِي الْآيَةِ إِضْمَارٌ، أَيْ كَيْفَ يَكُونُ لِلْمُشْرِكِينَ عَهْدٌ مَعَ إِضْمَارِ الْغَدْرِ، كَمَا قَالَ: وَخَبَّرْتُمَانِي إِنَّمَا الْمَوْتُ بِالْقُرَى ... فَكَيْفَ وَهَاتَا هَضْبَةٌ [[كذا في الأصول والبحر. والذي في شواهد سيبويه وجمهرة أشعار العرب: (وقليب) قال الشنتمري: (وأراد بالقليب القبر وأصله البئر. كأنه حذر من وباء الأمصار وهي القرى فخرج إلى البادية فرأى قبرا فعلم أن الموت لا ينجى منه فقال هذا منكرا على من حذره من الإقامة بالقرى).]] وَكَثِيبُ التَّقْدِيرُ: فَكَيْفَ مَاتَ، عَنِ الزَّجَّاجِ. وَقِيلَ: الْمَعْنَى كَيْفَ يَكُونُ لِلْمُشْرِكِينَ عَهْدٌ عِنْدَ اللَّهِ يَأْمَنُونَ بِهِ عَذَابَهُ غَدًا، وَكَيْفَ يَكُونُ لَهُمْ عِنْدَ رَسُولِهِ عَهْدٌ يَأْمَنُونَ بِهِ عَذَابَ الدُّنْيَا. ثُمَّ اسْتَثْنَى فَقَالَ: "إِلَّا الَّذِينَ عاهَدْتُمْ عِنْدَ الْمَسْجِدِ الْحَرامِ". قَالَ مُحَمَّدُ بْنُ إِسْحَاقَ: هُمْ بَنُو بَكْرٍ، أَيْ لَيْسَ الْعَهْدُ إِلَّا لِهَؤُلَاءِ الَّذِينَ لَمْ يَنْقُضُوا وَلَمْ يَنْكُثُوا. قَوْلُهُ تَعَالَى: ﴿فَمَا اسْتَقامُوا لَكُمْ فَاسْتَقِيمُوا لَهُمْ﴾ أي فما أقاموا على الوفاء بعهد كم فَأَقِيمُوا لَهُمْ عَلَى مِثْلِ ذَلِكَ. ابْنُ زَيْدٍ: فَلَمْ يَسْتَقِيمُوا فَضَرَبَ لَهُمْ أَجَلًا أَرْبَعَةَ أَشْهُرٍ. فَأَمَّا مَنْ لَا عَهْدَ لَهُ فَقَاتِلُوهُ حَيْثُ وجدتموه إلا أن يتوب.