Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:5:42

˹They are˺ avid listeners to falsehood, devourers of ˹what is˺ unlawful. So if they come to you, ˹O Muhammad˺, judge between them or turn away from them. And if you turn away from them - never will they harm you at all. And if you judge, judge between them with justice. Indeed, Allah loves those who act justly.  

They are, listeners to calumny and consumers of unlawful gain (read suhut or suht), that which is illicit, such as bribes. If they come to you, to judge between them, then judge between them or turn away from them: the ˹second˺ option given here was abrogated by His saying, So judge between them ˹to the end of˺ the verse ˹Q. 5:48˺. Therefore, we ˹Muslims˺ are obliged to judge between them if they request arbitration before us — and this is the more sound of al-Shāfi‘ī’s two opinions. If their request for arbitration involves a Muslim, however, then we are obliged to judge according to the consensus ˹of legal scholars and not just alShāfi‘ī˺); if you turn away from them, they cannot harm you at all; and if you judge, between them, then judge justly between them; God loves the just, those that judge fairly, meaning that He will reward them.
القرآن:٥:٤٢

سَمَّاعُونَ لِلْكَذِبِ أَكَّالُونَ لِلسُّحْتِ ۚ فَإِنْ جَاءُوكَ فَاحْكُمْ بَيْنَهُمْ أَوْ أَعْرِضْ عَنْهُمْ ۖ وَإِنْ تُعْرِضْ عَنْهُمْ فَلَنْ يَضُرُّوكَ شَيْئًا ۖ وَإِنْ حَكَمْتَ فَاحْكُمْ بَيْنَهُمْ بِالْقِسْطِ ۚ إِنَّ اللَّهَ يُحِبُّ الْمُقْسِطِينَ  

هم {سماعون للكذب أكالون للسُّحُت} بضم الحاء وسكونها أي الحرام كالرشا {فإن جاؤك} لتحكم بينهم {فاحكم بينهم أو أعرض عنهم} هذا التخيير منسوخ بقوله تعالى (وأن احكم بينهم) الآية فيجب الحكم بينهم إذا ترافعوا إلينا وهو أصح قولي الشافعي فلو ترافعوا إلينا مع مسلم وجب إجماعا {وإن تعرض عنهم فلن يضروك شيئا وإن حكمت} بينهم {فاحكم بينهم بالقسط} بالعدل {إن الله يحب المقسطين} العادلين في الحكم أي يثيبهم.