Amr bin Awf reported,

The Messenger of Allah ﷺ said, "Reconciliation between Muslims is permissible, except for a reconciliation that forbids what is lawful or permits what is forbidden. Muslims are bound by their conditions, except a condition that forbids what is lawful or permits what is forbidden."

Tirmidhi 1352

Sahih

حدثنا الحسن بن علي الخلال حدثنا أبو عامر العقدي حدثنا

كثير بن عبد الله بن عمرو بن عوف المزني عن أبيه عن جده

أن رسول الله ﷺ قال الصلح جائز بين المسلمين إلا صلحا حرم حلالا أو أحل حراما والمسلمون على شروطهم إلا شرطا حرم حلالا أو أحل حراما

الترمذي 1352صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Rulings
Chapter
Reconciliation between people
Numbering
Darussalam 1352
Tirmidhi 1352