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.' If you were a messenger, we would not be fighting you."So he 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 could enter Mecca for three days, and that they would not enter it except with the julubban of weapons.They asked him, "What is the julubban of weapons?"He answered, "The sheath with whatever it contains."

Bukhari 2698

Sahih

حدثنا محمد بن بشار حدثنا غندر حدثنا شعبة عن أبي إسحاق قال سمعت

البراء بن عازب رضي الله عنهما قال

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

البخاري 2698صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Reconciliation
Chapter
How to write "This is what so-and-so bin so-and-so agreed upon with so-and-so bin so-and-so" even if he did not attribute him to his tribe, or attributed him
Numbering
Darussalam 2698
Bukhari 2698