Even if both sides agreed on the terms, the treaty is unquestionably in favour of the Quraian side. Nevertheless, the Prophet s.a.w saw something that his companions did not see in the treaty, an opportunity to strengthen initiatives to strengthen community and nation initiatives in Madinah. For Madinah to prosper, securing peace on its border is indeed a strategic decision of the Prophet Muhammad S.A.W. The acceptance and adherence of the prophet s.a.w to the conditions, despite its imbalances, should ensure peace and not be involved in eternal conflict and war. From the content of the treaty, there are three things that the prophet s.a.w could benefit from Madinah and ultimately Islam with regard to the buildings of the community: 1) religious freedom was observed, which is not practiced in Makkah It is enshrined in the treaty that the people of Makkah declare their faith as Muslims and therefore, practice Islam. Permission is only required to leave Makkah if they intend to join the Prophet Muhammad s.a.w and his companions to live in Madinah. Freedom of religion is an important element in the construction of communities. In his book on international relations, Abu Zahrah mentioned nine essential principles for maintaining and facilitating good human relations between Muslims and non-Muslims. One of them is freedom of religion, as stated in the Koran: this treaty helped resolve the conflict between the two cities of Makkah and Madinah, and created a 10-year peace clause, approved by muhammad PBUH`s supporters, to return after years of peaceful pilgrimage, also known as the first pilgrimage of Islam. A verse from the Quran was revealed on the Treaty, which means: “We have granted you an obvious victory” (Koran 48:1). The Treaty of Hudaybiyyah (Arabic: ٱلْحُدَيْبِيَّة, Romanized: Al-Udaybiyyah) was an event that took place in the time of the Islamic prophet Mohamed.
It was a lenient contract between Muhammad, who represented the state of Medina, and the Qurayshi tribe of Mecca in January 628 (according to Dhu al-Qi`dah, AH 6). It helped ease tensions between the two cities, reaffirmed peace for a period of 9 years, 9 months and 9 days, and allowed Muhammad`s followers to return the following year in a peaceful pilgrimage later known as The First Pilgrimage.   After great difficulties, a contract was concluded in which it was agreed that all hostilities should cease for ten years; that someone who comes from the Quorian to the prophet be returned to the servants without the permission of the guardian or chief; that no Muslim person travelling to Mecca should be capitulated; that any tribe that wants to form an alliance, either with the Quorians or with the Muslims, should be free to do so without quarrels; that Muslims should, on this occasion, return to Medina and stop moving forward; That they could go to Mecca the following year and stay there for three days with the weapons they used on the trip, namely their Scimitare in hulls.