Chapter 33: The Book ofJihadand Expeditions

It has been narrated on the authority of Bara' who said: When the Prophet (ﷺ) was checked from going to the Ka' ba, the people of Mecca made peace with him' on the condition that he would (be allowed to) enter Mecca (next year) and stay there for three days, that he would not enter (the city) except with swords in their sheaths and arms encased in their covers, that he would not take eway with him anyone from its dwellers, nor would he prevent anyone from those with him to stay on in Mecca (if he so desired). He said to 'Ali: Write down the terms settled between us. (So 'Ali wrote): In the name of Allah, most Gracious and most Merciful. This is what Muhammad, the Messenger of Allah, has settled (with the Meccans), The polytheists said to him: If we knew that thou art the Messenger of of Allah, we would follow you. But write: Muhammad b. 'Abdullah. So he told 'Ali to strike out these words. 'Ali said: No, by Allah, I will not strike them out. The Messenger of Allah (may Peace be upon him) said: Show me their place (on the parchment). So he (' Ali) showed him their place and he (the Holy Prophet) struck them out; and 'Ali wrote: Ibn 'Abdullah. (According to the terms of the treaty, next year) the Prophet (ﷺ) stayed there for three days When it was the third day, they said to 'Ali: This is the last day according to the terms of your companion. So tell him to leave. 'Ali informed the Prophet (ﷺ) accordingly. He said: Yes, and left (the city). Ibn Janab in his version of the tradition used: " we would swear allegiance to you" instead of" we would follow you".
Sahih Muslim 1783c
Chapters
1 Introduction 2 The Book of Faith 3 The Book of Purification 4 The Book of Menstruation 5 The Book of Prayers 6 The Book of Mosques and Places of Prayer 7 The Book of Prayer - Travellers 8 The Book of Prayer - Friday 9 The Book of Prayer - Two Eids 10 The Book of Prayer - Rain 11 The Book of Prayer - Eclipses 12 The Book of Prayer - Funerals 13 The Book of Zakat 14 The Book of Fasting 15 The Book of I'tikaf 16 The Book of Pilgrimage 17 The Book of Marriage 18 The Book of Suckling 19 The Book of Divorce 20 The Book of Invoking Curses 21 The Book of Emancipating Slaves 22 The Book of Transactions 23 The Book of Musaqah 24 The Book of the Rules of Inheritance 25 The Book of Gifts 26 The Book of Wills 27 The Book of Vows 28 The Book of Oaths 29 The Book of Oaths, Muharibin, Qasas(Retaliation), andDiyat(Blood Money) 30 The Book of Legal Punishments 31 The Book of Judicial Decisions 32 The Book of Lost Property 33 The Book ofJihadand Expeditions 34 The Book on Government 35 The Book of Hunting, Slaughter, and what may be Eaten 36 The Book of Sacrifices 37 The Book of Drinks 38 The Book of Clothes and Adornment 39 The Book of Manners and Etiquette 40 The Book of Greetings 41 The Book Concerning the Use of Correct Words 42 The Book of Poetry 43 The Book of Dreams 44 The Book of Virtues 45 The Book of the Merits of the Companions 46 The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship 47 The Book of Destiny 48 The Book of Knowledge 49 The Book Pertaining to the Remembrance of Allah, Supplication, Repentance and Seeking Forgiveness 50 The Book of Heart-Melting Traditions 51 The Book of Repentance 52 Characteristics of The Hypocrites And Rulings Concerning Them 53 Characteristics of the Day of Judgment, Paradise, and Hell 54 The Book of Paradise, its Description, its Bounties and its Inhabitants 55 The Book of Tribulations and Portents of the Last Hour 56 The Book ofZuhdand Softening of Hearts 57 The Book of Commentary on the Qur'an