حَدَّثَنَا الْعَبَّاسُ بْنُ حَمْدَانَ الْحَنَفِيُّ، ثنا أَحْمَدُ بْنُ سِنَانٍ الْوَاسِطِيُّ، ثنا يَزِيدُ بْنُ هَارُونَ، ثنا مُحَمَّدُ بْنُ عُبَيْدِ اللهِ، عَنْ نُفَيْعٍ أَوْ أَنْفَعَ، عَنْ زَيْدِ بْنِ أَرْقَمَ، عَنِ النَّبِيِّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ: «إِنَّ اللهَ عَزَّ وَجَلَّ مَعَ الْقَاضِي مَا لَمْ يَحِفْ عَمْدًا، يُسَدِّدُهُ لِلْخَيْرِ مَا لَمْ يُرِدْ غَيْرُهُ»
It is narrated from Sayyiduna Zayd bin Arqam (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Allah, the Mighty and Majestic, is with the judge as long as he does not deliberately commit injustice; Allah keeps guiding him towards good as long as he does not want something other than it."