The Treaty of Hudaybiyyah was a peace agreement between the Prophet Muhammad ﷺ and the Quraysh of Makkah, concluded in Dhul Qa'dah 6 AH (around March 628 CE) at al-Hudaybiyyah, on the edge of the sacred area near Makkah. Many companions felt its terms were humiliating. Yet on the way home Allah revealed Surah al-Fath and called it "a clear conquest". Within two years Makkah opened to Islam almost without a fight. This guide sets out the terms of the treaty and explains its consequences.
This is part of our guide to The Seerah: A Timeline of the Life of Prophet Muhammad ﷺ. Follow the events on our Seerah timeline and mindmap.
The journey for Umrah
Six years after the migration, the Prophet ﷺ saw in a dream that he and his companions entered the Sacred Mosque in safety and performed the rites. He set out from Madinah with about 1,400 companions in the clothing of pilgrims, bringing sacrificial camels and carrying only travellers' swords. Al-Bara' ibn 'Azib said: "On the day of Al-Hudaibiya we were fourteen hundred men along with the Prophet (ﷺ)" (Sahih al-Bukhari, no. 3978 (Masaajidh edition)); another report from Jabir gives 1,500 (Sahih al-Bukhari, no. 3981 (Masaajidh edition)).
The Muslims came for worship, not war. That had been the clear message since the setback at Uhud and the siege of Madinah by the confederates in 5 AH. (Our article on the Battle of Uhud covers the earlier years of conflict.) Quraysh, however, were determined not to let them in.
The Prophet ﷺ took a side route to avoid Khalid ibn al-Walid's cavalry. Near Hudaybiyyah his camel, al-Qaswa', knelt and would not move. He said, "she was stopped by Him Who stopped the elephant," and added that if Quraysh asked for anything that respected the sanctities of Allah, he would grant it (Sahih al-Bukhari, no. 2620 (Masaajidh edition)).
Envoys, a rumour and the Pledge of Ridwan
Several envoys passed between the two sides. One of them, 'Urwah ibn Mas'ud, returned to Quraysh amazed: he had visited the courts of Caesar, Khosrau and the Negus, he said, but had never seen a king respected by his companions as Muhammad ﷺ was by his (Sahih al-Bukhari, no. 2620 (Masaajidh edition)).
The Prophet ﷺ sent 'Uthman ibn 'Affan (may Allah be pleased with him) into Makkah to explain that the Muslims had come only for Umrah. When 'Uthman was delayed, a rumour spread that he had been killed. The Prophet ﷺ called the companions to pledge that they would stand firm. They gave the pledge under a tree, and it became known as the Pledge of Ridwan (Bay'at ar-Ridwan), the pledge of Allah's good pleasure:
لَّقَدْ رَضِىَ ٱللَّهُ عَنِ ٱلْمُؤْمِنِينَ إِذْ يُبَايِعُونَكَ تَحْتَ ٱلشَّجَرَةِ فَعَلِمَ مَا فِى قُلُوبِهِمْ فَأَنزَلَ ٱلسَّكِينَةَ عَلَيْهِمْ وَأَثَٰبَهُمْ فَتْحًۭا قَرِيبًۭا
"Certainly was Allah pleased with the believers when they pledged allegiance to you, [O Muhammad], under the tree, and He knew what was in their hearts, so He sent down tranquillity upon them and rewarded them with an imminent conquest" (Quran 48:18)
Jabir reported that the Prophet ﷺ told them that day, "You are the best people on the earth!" (Sahih al-Bukhari, no. 3982 (Masaajidh edition)). The rumour proved false and 'Uthman returned safely.
The terms of the Treaty of Hudaybiyyah
Quraysh then sent Suhayl ibn 'Amr to make terms. When the Prophet ﷺ saw him he said, "Now the matter has become easy." The drafting itself was tense. The Prophet ﷺ dictated "By the Name of Allah, the most Beneficent, the most Merciful"; Suhayl objected and asked for the older formula "By Your Name O Allah". The Prophet ﷺ then dictated "Muhammad, Allah's Messenger"; Suhayl said that if they believed that, they would not be fighting him, so the Prophet ﷺ said, "By Allah! I am Apostle of Allah even if you people do not believe me. Write: Muhammad bin `Abdullah." (Sahih al-Bukhari, no. 2620 (Masaajidh edition).)
| Term | What it meant |
|---|---|
| No Umrah this year | The Muslims would return to Madinah and come back the following year, staying three days with swords sheathed. |
| A truce | Fighting between the two sides would stop. The classical biographies give its length as ten years. |
| Return of men from Makkah | Anyone from Quraysh who came to the Prophet ﷺ, "even if he embraced your religion", would be returned. Anyone who went from Madinah to Quraysh would not be returned. |
| Freedom of alliance | Other tribes could ally with either side. Khuza'ah joined the Muslims and Banu Bakr joined Quraysh. |
The one-sided return clause caused the most pain. As the treaty was being agreed, Abu Jandal, Suhayl's own son, arrived "staggering with his fetters" after escaping imprisonment in Makkah for his Islam. Suhayl demanded him back under the new terms, and the Prophet ﷺ returned him (Sahih al-Bukhari, no. 2602 (Masaajidh edition)). The same narration notes that believing women who emigrated were not returned, because Allah revealed Quran 60:10 about them.
The companions' distress and Umm Salamah's advice
'Umar ibn al-Khattab (may Allah be pleased with him) went to the Prophet ﷺ and asked, "Isn't our Cause just and the cause of the enemy unjust?… Then why should we be humble in our religion?" The Prophet ﷺ answered: "I am Allah's Messenger (ﷺ) and I do not disobey Him, and He will make me victorious." When 'Umar asked whether they had not been promised the Ka'bah, he replied, "Yes, but did I tell you that we would visit the Ka`ba this year?" 'Umar then went to Abu Bakr, who gave the same answer and told him, "Adhere to him as, by Allah, he is on the right." (Sahih al-Bukhari, no. 2620 (Masaajidh edition).)
When the Prophet ﷺ told the companions to sacrifice their animals and shave their heads to leave the state of pilgrimage, no one moved at first, even after he repeated it three times. He went to his wife Umm Salamah (may Allah be pleased with her), who advised him to go out without a word and do it himself. He did, and the companions immediately followed (Sahih al-Bukhari, no. 2620 (Masaajidh edition)). It is one of the best-known examples of a wife's wise counsel in the Seerah.
Surah al-Fath: "a clear conquest"
On the way back to Madinah, Surah al-Fath (chapter 48) was revealed. It begins:
إِنَّا فَتَحْنَا لَكَ فَتْحًۭا مُّبِينًۭا
"Indeed, We have given you, [O Muhammad], a clear conquest" (Quran 48:1)
A treaty that looked like a retreat was called a conquest. Al-Bara' later said that while people thought of the conquest of Makkah as the victory, "We really consider that the actual Victory was the Ar-Ridwan Pledge of allegiance which we gave on the day of Al-Hudaibiya" (Sahih al-Bukhari, no. 3978 (Masaajidh edition)). The surah also confirms that the Prophet's dream was true and would be fulfilled:
"Certainly has Allah showed to His Messenger the vision in truth. You will surely enter al-Masjid al-Haram, if Allah wills, in safety… He knew what you did not know and has arranged before that a conquest near [at hand]." (Quran 48:27)
Read the whole surah on our Surah 48 with translation page, ideally with a tafseer open beside it.
Consequences: from Hudaybiyyah to the conquest of Makkah
The peace changed everything. With the threat from Makkah paused, people could travel, trade and talk freely, and many who had only heard about Islam through war now met Muslims in ordinary life. Historians often note that more people entered Islam in the two years after the treaty than in all the years before it.
- Khaybar (7 AH). Freed from the southern threat, the Muslims dealt with the hostile fortress town of Khaybar to the north.
- Letters to rulers. The Prophet ﷺ sent letters inviting rulers such as the Byzantine emperor, the Persian king and the ruler of Egypt to Islam.
- The make-up Umrah (7 AH). As agreed, the Muslims returned the next year and performed Umrah for three days.
- Abu Basir and the return clause. Muslims escaping Makkah formed their own band on the coast, out of reach of both sides, and harassed Quraysh caravans. Quraysh themselves asked the Prophet ﷺ to take them in, effectively dropping the clause they had insisted on (Sahih al-Bukhari, no. 2620 (Masaajidh edition)).
- New Muslims. Leading Makkans, including Khalid ibn al-Walid and 'Amr ibn al-'As, came to Madinah and accepted Islam during the truce.
The treaty ended when Banu Bakr, allies of Quraysh, attacked Khuza'ah, allies of the Muslims, with Quraysh support. In Ramadan 8 AH (January 630 CE) the Prophet ﷺ marched on Makkah with about 10,000 men. The city surrendered with very little fighting, and he declared a general amnesty. 'Abdullah ibn Mughaffal said he saw the Prophet ﷺ "on the day of the Conquest of Mecca over his she-camel, reciting Surat-al-Fath" (Sahih al-Bukhari, no. 4099 (Masaajidh edition)). The "clear conquest" promised at Hudaybiyyah had arrived.
Lessons from Hudaybiyyah
- Short-term loss, long-term gain. The terms that hurt most turned out to matter least.
- Peace is a strategy. A truce gave Islam room to grow faster than war ever had.
- Honest questions are allowed. 'Umar asked openly; the answers taught patience and trust.
- Lead by example. Umm Salamah's advice worked because actions speak louder than instructions.
- Keep your word. The Prophet ﷺ honoured the treaty even when it was painful, as with Abu Jandal.
The treaty also shaped the companions who later led the community. Abu Bakr's calm certainty and 'Umar's honest questions both reappear when they became caliphs. Our guide to the Rashidun Caliphate: the four rightly guided caliphs follows them after the Prophet's death.
Conclusion
The Treaty of Hudaybiyyah is the Seerah's great lesson in patience: an agreement that looked like defeat, which Allah called a clear conquest, and which opened Makkah two years later. To see how it fits between Uhud and the conquest of Makkah, explore our Seerah timeline and mindmap, or read the long Hudaybiyyah narrations in the early biographies in our classical history texts.
Keep learning:
- The Rashidun Caliphate: The Four Rightly Guided Caliphs: what came after the Prophet ﷺ.
- The Battle of Uhud (3 AH): Lessons From a Setback: the earlier years of conflict with Quraysh.
- The Seerah: A Timeline of the Life of Prophet Muhammad ﷺ: the full story in order.
Frequently asked questions
What was the Treaty of Hudaybiyyah?
It was a peace agreement made in Dhul Qa'dah 6 AH (around March 628 CE) between the Prophet and the Quraysh of Makkah at al-Hudaybiyyah, near Makkah. The Muslims had come to perform Umrah but were refused entry. The treaty postponed their Umrah by a year, paused the fighting and allowed tribes to choose their allies.
What were the main terms of the treaty?
The Muslims would return to Madinah without performing Umrah and come back the next year for three days. Fighting would stop for a period that the classical biographies give as ten years. Men from Quraysh who came to the Prophet would be returned, but not the other way round, and other tribes were free to ally with either side.
Why is Hudaybiyyah called a clear victory?
Because Allah revealed Surah al-Fath on the return journey, opening with "Indeed, We have given you a clear conquest" (Quran 48:1). The peace let people meet Muslims freely, many accepted Islam, and when Quraysh's allies broke the truce, Makkah was opened in 8 AH with very little fighting. The companion al-Bara said they considered the Pledge of Ridwan the real victory.
How did the Treaty of Hudaybiyyah end?
It ended when Banu Bakr, allies of Quraysh, attacked Khuza'ah, allies of the Muslims, with help from some Quraysh. In Ramadan 8 AH, around January 630 CE, the Prophet marched on Makkah with about 10,000 men. The city surrendered with little fighting, a general amnesty was declared, and he entered reciting Surah al-Fath.

