Sahih Muslim 3321: Jihad and Conduct in War
It is narrated from Abu Ishaq that he said: I heard Hazrat Bara' bin Azib (ra) say: The peace treaty which was settled between the Prophet (saw) and the idolaters on the day of Hudaibiyah was written by Hazrat Ali (ra). He wrote: This is the agreement which Muhammad, the Messenger of Allah (saw), has had written. They (the disbelievers) said: Do not write the words “Messenger of Allah (saw)”. If we knew that you are the Messenger of Allah (saw), we would not fight you. The Prophet (saw) said to Hazrat Ali (ra): “Erase it.” He said: How can I erase it? The Prophet (saw) erased it himself with his own hand. The narrator says: One of the conditions was that they (the Muslims) would come to Mecca and stay there for three days, and that no one would enter it carrying weapons, except weapons that are in their sheaths. The narrator says: I said to Abu Ishaq: What is meant by “julubbanus-silah”? He said: The sheath and what is inside it. It is narrated from Abu Ishaq that he said: I heard Hazrat Bara' bin Azib (ra) say: When the Messenger of Allah (saw) made peace with the people of Hudaibiyah, Hazrat Ali (ra) wrote the document between them. He said: He wrote “Muhammad, the Messenger of Allah (saw)”. Then the rest of the narration is like the first narration, but in it it is not mentioned (that he wrote): This is the agreement which (he (saw)) has had written.
AI-translated by Islam-Today