مشكوة المصابيح Mishkat al-Masabih كتاب البيوع The Book of Sales and Trade
(الشَّرْطُ الَّذِي يُحِلُّ الحَرَامَ أَوْ يُحَرِّمُ الحَلَالَ غَيْرُ جَائِزٍ)

(A condition that makes the unlawful lawful or the lawful unlawful is not permissible)

1 hadith
Hadith 2923
وَعَن عَمْرو بن عَوْف الْمُزَنِيِّ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «الصُّلْحُ جَائِزٌ بَيْنَ الْمُسْلِمِينَ إِلَّا صُلْحًا حَرَّمَ حَلَالًا أَوْ أَحَلَّ حَرَامًا وَالْمُسْلِمُونَ عَلَى شُرُوطِهِمْ إِلَّا شَرْطًا حَرَّمَ حَلَالًا أَوْ أَحَلَّ حَرَامًا» . رَوَاهُ التِّرْمِذِيُّ وَابْنُ مَاجَهْ وَأَبُو دَاوُدَ وَانْتَهَتْ رِوَايَته عِنْد قَوْله «شروطهم»
‘Amr b. ‘Auf al-Muzani reported the Prophet as saying, “Reconciliation is allowable between Muslims except such as makes unlawful something which is lawful, or makes lawful something which is unlawful ; and Muslims must keep to the conditions they have made, except for a condition which makes unlawful something which is lawful, or makes lawful something which is unlawful.” Tirmidhi, Ibn Majah and Abu Dawud transmitted it, but Abu Dawud's transmission ended at “the conditions they have made.”
Hadith Reference Mishkat al-Masabih / The Book of Sales and Trade / Hadith: 2923
Hadith Grading الألبانی: لم تتمّ دراسته  |  زبیر علی زئی: صحيح
Hadith Takhrij ´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «صحيح، رواه الترمذي (1352 وقال: حسن صحيح) و ابن ماجه (2353) [و أبو داود (3594) من حديث أبي ھريرة رضي الله عنه و سنده حسن]¤٭ سنده ضعيف جدًا و للحديث شواھد عند أبي داود وغيره وھو بھا صحيح .»