Jami` at-Tirmidhi, Book 15, Hadith 10 (Tirmidhi 1343)

Ibn Abi Al-Awfa narrated that the Messenger of Allah (ﷺ) said:

" Allah is with the judge as long as he is not unjust. So when he is unjust, He leaves him and he is attended by Shaitan."