Sahih al-Bukhari 2698
Muhammad bin Bashshar told us. Ghundar narrated to us that Shu'bah told us. He narrated from Abu Ishaq that he said: I heard Hazrat Bara' bin Azib (ra) saying: When the Messenger of Allah (saw) made peace with the people of Hudaibiyah, Hazrat Ali bin Abi Talib (ra) wrote a document between them, and he wrote (his name in it as) Muhammad, the Messenger of Allah (saw). The idolaters said: Do not write Muhammad, the Messenger of Allah (saw). If he were a messenger, we would not fight him. He (saw) said to Hazrat Ali (ra): “Erase it.” Hazrat Ali (ra) said: I will not be the (person) who erases it. Then the Messenger of Allah (saw) erased it with his own hand and made peace with them on the condition that he and his Companions would stay (in Mecca) for three days, and that they would enter it with their weapons placed in a Julubban. The people asked him: What is this Julubban? He said: The cover in which a sword is placed together with its sheath.
AI-translated by Islam-Today