Bulugh al-Maram 876
عَنْ عَمْرِو بْنِ عَوْفٍ الْمُزَنِيِّ - رضي الله عنه - أَنَّ رَسُولَ اللَّهِ - صلى الله عليه وسلم - قَالَ: «الصُّلْحُ جَائِزٌ بَيْنَ الْمُسْلِمِينَ, إِلَّا صُلْحًا حَرَّمَ حَلَالًا وَ أَحَلَّ حَرَامًا، وَالْمُسْلِمُونَ عَلَى شُرُوطِهِمْ, إِلَّا شَرْطًا حَرَّمَ حَلَالًا وَ أَحَلَّ حَرَامًا». رَوَاهُ التِّرْمِذِيُّ وَصَحَّحَهُ. وَأَنْكَرُوا عَلَيْهِ; لِأَنَّ رَاوِيَهُ كَثِيرَ بْنَ عَبْدِ اللَّهِ بْنِ عَمْرِوِ بْنِ عَوْفٍ ضَعِيفٌ. وَكَأَنَّهُ اعْتَبَرَهُ بِكَثْرَةِ طُرُقِهِ.
From ʿAmr ibn ʿAwf al-Muzani, may Allah be pleased with him, that the Messenger of Allah ﷺ said: "Settlement is permissible between Muslims, except a settlement that makes unlawful what is lawful or makes lawful what is unlawful. Muslims are bound by their conditions, except a condition that makes unlawful what is lawful or makes lawful what is unlawful." Reported by at-Tirmidhi, who graded it sahih. They objected to him on this, because its narrator, Kathir ibn ʿAbdullah ibn ʿAmr ibn ʿAwf, is weak; it seems he took into account the large number of its routes.