Surah 9

Surah 9:4

"except those of the idolaters with whom you have made a treaty, (and who) since then have not failed you in anything and have not supported anyone against you. Fulfill their treaty with them until their term. Surely God loves the ones who guard (themselves)."
Existing Peace Treaties remained valid until the End of Their Term Verses 9:4
Show Full Scripture Context (9:4) — 1 Verse
Verse 4

إِلَّا ٱلَّذِينَ عَٰهَدتُّم مِّنَ ٱلۡمُشۡرِكِينَ ثُمَّ لَمۡ يَنقُصُوكُمۡ شَيۡـٔٗا وَلَمۡ يُظَٰهِرُواْ عَلَيۡكُمۡ أَحَدٗا فَأَتِمُّوٓاْ إِلَيۡهِمۡ عَهۡدَهُمۡ إِلَىٰ مُدَّتِهِمۡۚ إِنَّ ٱللَّهَ يُحِبُّ ٱلۡمُتَّقِينَ

except those of the idolaters with whom you have made a treaty, (and who) since then have not failed you in anything and have not supported anyone against you. Fulfill their treaty with them until their term. Surely God loves the ones who guard (themselves).

This is an exception regulating the longest extent of time for those who have a general treaty - with out time mentioned - to four months.
They would have four months to travel the lands in search of sanctuary for themselves wherever they wish. Those whose treaty mentioned a specifec limited term, then the longest it would extend was to the point of its agreed upon termination date. Hadiths in this regard proceeded. So anyone who had a treaty with Allah’s Messenger, it lasted until its specific termination date. However, those in this category were required to refrain from breaking the terms of the agreement with Muslims and from helping non-Muslims against Muslims. This is the type whose peace agreement with Muslims was carried out to its end. Allah encouraged honoring such peace treaties, saying.
4 Surely , Allah loves those who have Taqwa} [9:4], who keep their promises.

— from Tafsir Ibn Kathir (Vol. 4, Page 375)

About this Source & Scholarly Authority (Tafsir Ibn Kathir)

Universal Sunni Consensus: Tafsir al-Qur'an al-Azim by Hafiz Ibn Kathir (701–774 AH / 1301–1373 AD) is universally regarded across all major schools of Sunni Islam (traditional, Salafi, Ash'ari) as the most authoritative classical exegesis. It is prized because it relies on Tafsir bil-Ma'thur—interpreting the Quran using the Quran itself, authentic Hadiths of Prophet Muhammad, and recorded statements of the early Companions (Sahabah).

Standard English Edition: This text is from the standard 10-volume English abridgment published by Dar-us-Salam Publications (supervised by Shaykh Safiur-Rahman Al-Mubarakpuri), which is the official, most widely distributed English Quranic commentary in mosques and Islamic libraries worldwide today.