The Treaty of Hudaybiyyah () was an event that took place during the time of the Islamic prophet Muhammad. It was a pivotal treaty between Muhammad, representing the state of Medina, and the Qurayshi tribe of Mecca in January 628 (corresponding to Dhu al-Qi'dah, AH 6). It helped to decrease tension between the two cities, affirmed peace for a period of 10 years, and authorised Muhammad's followers to return the following year in a peaceful pilgrimage, later known as The First Pilgrimage. Attempted pilgrimage Muhammad had a premonition that he entered Mecca and did tawaf around the Ka'bah. His companions in Madinah were delighted when he told them about it. They all revered Mecca and the Kaaba and they learned to do tawaf there. In 628, Muhammad and a group of 1,400 Muslims marched peacefully without arms towards Mecca, in an attempt to perform the Umrah (pilgrimage). They were dressed as pilgrims, and brought sacrificial animals, hoping that the Quraish would honour the Arabian custom of allowing pilgrims to enter the city. The Muslims had left Medina in a state of ihram, a premeditated spiritual and physical state which restricted their freedom of action and prohibited fighting. This, along with the paucity of arms carried, indicated that the pilgrimage was always intended to be peaceful. Muhammad and his followers camped outside of Mecca, and Muhammad met with Meccan emissaries who wished to prevent the pilgrims' entry into Mecca. After negotiations, the two parties decided to resolve the matter through diplomacy rather than warfare, and a treaty was drawn up. Conditional points of the treaty After a long discussion, both parties agreed with some conditional points, such as: The Messenger of Allah will have to return to Medina instead of having entered Mecca that year. The Muslim shall perform their pilgrimage in the upcoming year and they would stay in peace at Mecca for three days including the years onward with no arms except sheathed swords. There will be a truce between both parties for ten years, whereby during this period all the people may enjoy safety and harmony. Whoever wishes to enter into a covenant with the Prophet will be allowed to do so, and whoever wishes to enter into a covenant with the Quraish will be allowed to do so. Whoever enters into any one of the parties will be considered part of that party. Likewise, any sort of