Ali ibn Abi Talib reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, after me there will be conflicts or affairs, so if you can end them in peace, then do so.”
Source: Musnad Aḥmad 695
Grade: Sahih (authentic) according to Ahmad Shakir
Malik, may Allah be pleased with him, said, “It is permissible to contract a peace treaty with the idolaters for one, two, or three years, or without any time limit.”
Source: Tafsīr al-Qurṭubī 8:61
عَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِنَّهُ سَيَكُونُ بَعْدِي اخْتِلَافٌ أَوْ أَمْرٌ فَإِنْ اسْتَطَعْتَ أَنْ تَكُونَ السِّلْمَ فَافْعَل
695 مسند أحمد بن حنبل
1/469 المحدث أحمد شاكر خلاصة حكم المحدث إسناده صحيح في مسند أحمد
قال القرطبي عَنْ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ تَجُوزُ مُهَادَنَةُ الْمُشْرِكِينَ السَّنَةَ وَالسَّنَتَيْنِ وَالثَّلَاثَ وَإِلَى غَيْرِ مُدَّةٍ
8/41 تفسير القرطبي