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.
bayhaqi:20168Abū Saʿd al-Mālīnī > Abū Aḥmad b. ʿAdī > Ibn Ṣāʿid > Aḥmad b. Sinān al-Qaṭṭān > Muḥammad b. Bilāl > ʿImrān al-Qaṭṭān > Ḥusayn al-Muʿallim > Abū Isḥāq al-Shaybānī > Ibn Abū Awfá

[Machine] The Messenger of Allah ﷺ said, "Indeed, Allah is with the judge as long as he does not turn unjust. But when he turns unjust, Allah hands him over to himself." Ibn Saad said...  

البيهقي:٢٠١٦٨وَأَخْبَرَنَا أَبُو سَعْدٍ الْمَالِينِيُّ أنبأ أَبُو أَحْمَدَ بْنُ عَدِيٍّ أنبأ ابْنُ صَاعِدٍ أنبأ أَحْمَدُ بْنُ سِنَانٍ الْقَطَّانُ ثنا مُحَمَّدُ بْنُ بِلَالٍ عَنْ عِمْرَانَ الْقَطَّانِ عَنْ حُسَيْنٍ الْمُعَلِّمِ عَنْ أَبِي إِسْحَاقَ الشَّيْبَانِيِّ عَنِ ابْنِ أَبِي أَوْفَى قَالَ

قَالَ رَسُولُ اللهِ ﷺ إِنَّ اللهَ ﷻ مَعَ الْقَاضِي مَا لَمْ يَجُرْ فَإِذَا جَارَ وَكَلَهُ إِلَى نَفْسِهِ قَالَ ابْنُ صَاعِدٍ  

رَوَاهُ عَمْرُو بْنُ عَاصِمٍ عَنْ عِمْرَانَ الْقَطَّانِ فَلَمْ يَذْكُرْ فِي إِسْنَادِهِ حُسَيْنًا