Throughout history in international relations, agreements have taken second place after wars. The flow of history has been determined by wars and agreements.
Determining which purposes were basic to the agreements Rasulullahﷺ is connected to knowing the spirit and basic principles dominant in his diplomacy. As the founder and leader of Islamic society, he had the goal of preparing a foundation for the application of divine instructions in his own society and taking, by every possible means, the message he brought to individuals and societies he came into contact with. His agreements should be evaluated from this perspective before anything else.
Rasulullahﷺ was not pursuing the exploitation of another political unit by intervening in their internal affairs or the establishment of hegemony over people by creating pacts through agreements. Rasulullahﷺ knew that the transmission of Islam would be more effective in an environment of peace and security provided by agreements. Due to religion being a belief system before anything else, he could only enter societies using the hearts of individuals. For this reason, Rasulullahﷺ never used force or declared war against those who did not prevent his call and invitation; he took as an essential principle being a sultan of hearts, not bodies.
The command in the Holy Quran:
(Al-Baqara 256)
Attempting to force people to adopt a belief or ideology or wanting to shape their minds with pressure would not do anything but increase the number of hypocrites. In that case, why did Islam make jihad mandatory? Jihad is for removing obstacles to the conveyance of the divine message to people and to create a foundation for people to be able to know Islam with common sense, far removed from pressure and anxiety, and to be able to make choices with their own free will. On the other hand, jihad allows presenting the Islamic religion as a functional, individual, and practical system instead of just a theoretical message.
Because peace is the most suitable foundation for calling people to Islam and for conveying its noble values, Rasulullahﷺ always took peace as a basis of his politics. War was secondary. Peace being fundamental is tied to the judgment of Quranic verses:
لَّا يَنْهَىٰكُمُ ٱللَّهُ عَنِ ٱلَّذِينَ لَمْ يُقَـٰتِلُوكُمْ فِى ٱلدِّينِ وَلَمْ يُخْرِجُوكُم مِّن دِيَـٰرِكُمْ أَن تَبَرُّوهُمْ
وَتُقْسِطُوٓا۟ إِلَيْهِمْ ۚ إِنَّ ٱللَّهَ يُحِبُّ ٱلْمُقْسِطِينَ ٨
“God forbids you not, with regard to those who fight you not for your Faith nor drive you out of your homes, from dealing kindly and justly with them”
(Al-Mumtahana 8);
۞ وَإِن جَنَحُوا۟ لِلسَّلْمِ فَٱجْنَحْ لَهَا وَتَوَكَّلْ عَلَى ٱللَّهِ ۚ إِنَّهُۥ هُوَ ٱلسَّمِيعُ ٱلْعَلِيمُ ٦١
“But if the enemy incline towards peace, do thou also incline towards peace, and trust in God. For He is the One that heareth and knoweth all things”
(Al-Anfal 61).