“Allah is with the judge so long as he is not unjust, but if he rules unjustly, He entrusts him to himself.”

Sunan Ibn Majah Book 13, Hadith 5