Surah At-Tawba · سُوْرَةُ التَّوْبَةِ · Juz 10
Q 9:4
إِلَّا ٱلَّذِينَ عَـٰهَدتُّم مِّنَ ٱلْمُشْرِكِينَ ثُمَّ لَمْ يَنقُصُوكُمْ شَيْـًٔا وَلَمْ يُظَـٰهِرُوا۟ عَلَيْكُمْ أَحَدًا فَأَتِمُّوٓا۟ إِلَيْهِمْ عَهْدَهُمْ إِلَىٰ مُدَّتِهِمْ ۚ إِنَّ ٱللَّهَ يُحِبُّ ٱلْمُتَّقِينَ
Translations
Excepted are those with whom you made a treaty among the polytheists and then they have not been deficient toward you in anything or supported anyone against you; so complete for them their treaty until their term [has ended]. Indeed, Allah loves the righteous [who fear Him].A l'exception des associateurs avec lesquels vous avez conclu un pacte, puis ils ne vous ont manqué en rien, et n'ont soutenu personne [à lutter] contre vous: respectez pleinement le pacte conclu avec eux jusqu'au terme convenu. Allah aime les pieux.Tafsir
The idolaters who are excluded from the previous ruling are those with whom you entered into a treaty and they honoured the treaty in full. So there will be a complete fulfilment of the treaty with them until the end of the period. Allah loves those who are mindful of Him by obeying His sacred law, which includes fulfilment of treaties, and by avoiding His prohibitions, which include the prohibition of treachery.
Read Ibn Kathir (Ibn Kathir (abridged, English))
Arabic text: Tanzil (Uthmani). Translations: Sahih International (en), Muhammad Hamidullah (fr). tanzil.net