قال خُصَيف: وحدثني عطاء بن أبي رباح، عن أنس بن مالك، قال: قال رسول الله ﷺ: "المسلمون عند شُروطهم ما وافَقَ الحقَّ من ذلك" (2).
It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Muslims abide by their conditions, as long as those conditions are in accordance with the truth."
Hadith Referenceمستدرکِ حاکم / كتاب : البيوع / 2341M
(2) إسناده ضعيف جدًّا إسناد سابقه. Grading: Its chain is very weak (da'if jiddan), like the chain before it. وأخرجه البيهقي 7/ 249 عن أبي عبد الله الحاكم، بهذا الإسناد. Reference / Source: Imam al-Bayhaqi recorded it in "al-Sunan al-Kubra" (7/ 249) through Abu 'Abd Allah al-Hakim with this same chain. وأخرجه الدارقطني (2894) عن رضوان بن أحمد الصيدلاني، عن ابن أبي الدنيا، به. Reference / Source: Imam al-Daraqutni (2894) recorded it through Ridwan bin Ahmad al-Saydalani, from Ibn Abi al-Dunya, with his chain.
Source: Al-Mustadrak ala al-Sahihayn (Takhrij & Tahqiq: Shaykh Adil Murshid et al.), Page: 2341