Bara bin Azib reported,

When the Messenger of Allah ﷺ made peace with the people of Hudaybiyah, Ali bin Abu Talib wrote the agreement between them. He wrote, "Muhammad, the Messenger of Allah."The polytheists objected, "Do not write 'Muhammad, the Messenger of Allah.' Had you been a messenger, we would not have fought you."So the Prophet ﷺ said to Ali, "Erase it."Ali replied, "I am not the one to erase it."So the Messenger of Allah ﷺ erased it with his own hand. He made peace with them on the condition that he and his companions would enter Mecca for three days, and that they would only enter carrying their weapons in their sheaths.They asked him, "What is meant by 'sheaths of weapons'?"He answered, "The scabbard with whatever it contains."

Azami 9007

Sahih

عن البراء بن عازب قال

لما صالح رسول الله ﷺ أهل الحديبية، كتب علي بن أبي طالب بينهم كتابا، فكتب محمد رسول الله، فقال المشركون: لا تكتب محمد رسول الله، لو كنت رسولا لم نقاتلك، فقال لعلي امحه، فقال علي: ما أنا بالذي أمحاه، فمحاه رسول الله ﷺ بيده، وصالحهم على أن يدخل هو وأصحابه ثلاثة أيام، ولا يدخلوها إلا بجلبان السلاح، فسألوه ما جلبان السلاح؟ فقال: القراب بما فيه.

الأعظمي 9007صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Expedition of Hudaybiya and expedition of Dhat al-Qarad
Section
Peace agreement between the Prophet ﷺ and Suhayl bin Amr on the day of Hudaybiya, and mention of the events that occurred after the peace agreement
Numbering
Jami al-Kamil 9007 (2nd edition)
Azami 9007