Anas bin Malik reported,

Quraysh made a peace treaty with the Prophet ﷺ, and among them was Suhayl bin Amr. The Prophet ﷺ said to Ali, "Write, In the name of Allah, the Most Gracious, the Most Merciful."Suhayl objected, "As for 'In the name of Allah,' we do not know what 'In the name of Allah, the Most Gracious, the Most Merciful' means. Rather, write what we recognize, 'In Your name, O Allah.'"The Prophet ﷺ then said, "Write, From Muhammad, the Messenger of Allah."They said, "If we knew you were the Messenger of Allah, we would have followed you. Rather, write your name and your father's name."So the Prophet ﷺ said, "Write, From Muhammad bin Abdullah."They then stipulated to the Prophet ﷺ, "Whoever comes to you from us, you will not return him to us, and whoever comes to us from you, we will return him to you."The companions said, "Messenger of Allah, shall we write this?"He replied, "Yes. Whoever leaves us to join them, may Allah cast him far away. And whoever comes to us from them, Allah will surely grant him relief and a way out."

Azami 9014

Sahih

عن أنس

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

الأعظمي 9014صحيح
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 9014 (2nd edition)
Azami 9014