كتاب الجهاد والسير
32  
The Book of Jihad and Expeditions
(34)
Chapter: The truce of Al-Hudaybiyah
(34)
باب صُلْحِ الْحُدَيْبِيَةِ فِي الْحُدَيْبِيَةِ ‏‏
Sahih Muslim 1783 a

It has been narrated on the authority of al-Bara' b. 'Azib who said:

'Ali b. Abu Talib penned the treaty between the Prophet (ﷺ) and the polytheists on the Day of Hudaibiya. He wrote: This is what Muhammad, the Messenger of Allah, has settled. They (the polytheists) said: Do not write words" the Messenger of Allah". If we knew that you were the Messenger of Allah, we would not fight against you. The Prophet (ﷺ) said to 'Ali: Strike out these words. He (Ali) said: I am not going to strike them out. So the Prophet (ﷺ) struck them out with his own hand. The narrator said that the conditions upon which the two sides had agreed included that the Muslims would enter Mecca (next year) and would stay there for three days, and that they would not enter bearing arms except in their sheaths or bolsters.
حَدَّثَنِي عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ الْعَنْبَرِيُّ، حَدَّثَنَا أَبِي، حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي إِسْحَاقَ، قَالَ سَمِعْتُ الْبَرَاءَ بْنَ عَازِبٍ، يَقُولُ كَتَبَ عَلِيُّ بْنُ أَبِي طَالِبٍ الصُّلْحَ بَيْنَ النَّبِيِّ صلى الله عليه وسلم وَبَيْنَ الْمُشْرِكِينَ يَوْمَ الْحُدَيْبِيَةِ فَكَتَبَ ‏"‏ هَذَا مَا كَاتَبَ عَلَيْهِ مُحَمَّدٌ رَسُولُ اللَّهِ‏"‏ ‏.‏ فَقَالُوا لاَ تَكْتُبْ رَسُولُ اللَّهِ فَلَوْ نَعْلَمُ أَنَّكَ رَسُولُ اللَّهِ لَمْ نُقَاتِلْكَ ‏.‏ فَقَالَ النَّبِيُّ صلى الله عليه وسلم لِعَلِيٍّ ‏"‏ امْحُهُ ‏"‏ ‏.‏ فَقَالَ مَا أَنَا بِالَّذِي أَمْحَاهُ ‏.‏ فَمَحَاهُ النَّبِيُّ صلى الله عليه وسلم بِيَدِهِ قَالَ وَكَانَ فِيمَا اشْتَرَطُوا أَنْ يَدْخُلُوا مَكَّةَ فَيُقِيمُوا بِهَا ثَلاَثًا وَلاَ يَدْخُلُهَا بِسِلاَحٍ إِلاَّ جُلُبَّانَ السِّلاَحِ ‏.‏ قُلْتُ لأَبِي إِسْحَاقَ وَمَا جُلُبَّانُ السِّلاَحِ قَالَ الْقِرَابُ وَمَا فِيهِ ‏.‏
Reference : Sahih Muslim 1783a
In-book reference : Book 32, Hadith 111
USC-MSA web (English) reference : Book 19, Hadith 4401
  (deprecated numbering scheme)