It is narrated from Sayyiduna Abdullah bin Mas'ud (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 do injustice."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9756