Allah, the Mighty and Majestic, said: "Then if you disagree over anything, refer it to Allah and the Messenger" [al-Nisa': 59]. Imam al-Shafi'i (may Allah have mercy on him) said: "If you disagree" means, and Allah knows best, they and their rulers whom they are to obey; "refer it to Allah and the Messenger" means, and Allah knows best, to what Allah and the Messenger said. And Allah Almighty said: "Does man think that he will be left neglected (suda)?" [al-Qiyamah: 36]. Al-Shafi'i said: As far as I know, the scholars of the Qur'an did not differ that 'suda' is one who is neither commanded nor forbidden; and whoever gives a fatwa or a judgement by something he has not been commanded has permitted himself to fall within the meaning of 'suda'. Al-Bayhaqi said: We have narrated from Mujahid, in the explanation of the two verses, the same as what al-Shafi'i said.
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that he said: "Indeed (correct) judging is not merely a calculation that a person works out; rather, it is an inner state (and divine insight) that comes over the heart."
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب القضاء وما على القاضي في الخصوم والشهود / 4892
Hadith Gradingمحدثین:سكت عنه البوصيري، موقوف؛ إسناده حسن
Hadith Takhrij«محمد بن عمرو بن علقمة: صدوق له أوهام (من الحفظ)؛ ومسدد وحماد بن زيد وأبو سلمة ثقات؛ وهو من قول أبي هريرة.»
Ubaydullah bin Abi Yazid relates concerning Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both): "When he was asked about any matter, if it was in the Book of Allah he would give his ruling according to it; if it was not in the Book of Allah but (something about it) was established from the Messenger of Allah (peace and blessings be upon him), he would report that; if it was neither in the Book of Allah nor in any judgement of the Messenger of Allah (peace and blessings be upon him), but was reported from Sayyiduna Abu Bakr and Sayyiduna Umar (may Allah be pleased with them both), he would adopt that; and if no ruling was established from them either, he would then exercise ijtihad with his own scholarly insight."
Imam al-Hakim, and through him Imam al-Bayhaqi in his Sunan, also narrated it, and all the narrators of the chain of this report are thiqat (trustworthy).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب القضاء وما على القاضي في الخصوم والشهود / 4893