Existing Peace Treaties remained valid until the End of Their Term
Allah says;
إِلاَّ الَّذِينَ عَاهَدتُّم مِّنَ الْمُشْرِكِينَ ثُمَّ لَمْ يَنقُصُوكُمْ شَيْيًا وَلَمْ يُظَاهِرُواْ عَلَيْكُمْ أَحَدًا فَأَتِمُّواْ إِلَيْهِمْ عَهْدَهُمْ إِلَى مُدَّتِهِمْ
...
Except those of the Mushrikin with whom you have a treaty, and who have not subsequently failed you in aught, nor have supported anyone against you. So fulfill their treaty for them until the end of their term.
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 specific limited term, then the longest it would extend was to the point of its agreed upon termination date.
Hadiths in this regard preceded. 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,
...
إِنَّ اللّهَ يُحِبُّ الْمُتَّقِينَ
Surely, Allah loves those who have Taqwa.
who keep their promises.
عہد نامہ کی شرط
پہلے جو حدیثیں بیان ہو چکی ہیں ان کا اور اس آیت کامضمون ایک ہی ہے اس سے صاف ہو گیا کہ جن میں مطلقاً عہد و پیمان ہوئے تھے انہیں تو چار ماہ کی مہلت دی گئی کہ اس میں وہ اپنا جو چاہیں کرلیں اور جن سے کسی مدت تک عہد پیمان ہو چکے ہیں وہ سب عہد ثابت ہیں بشرطیکہ وہ لوگ معاہدے کی شرائط پر قائم رہیں نہ مسلمان کو خود کوئی ایذاء پہنچائیں نہ ان کے دشمنوں کی کمک اور امداد کریں اللہ تعالیٰ اپنے وعدوں کے پورے لوگوں سے محبت رکھتا ہے ۔