Jami` at-Tirmidhi #1330
The Chapters On Judgements From The Messenger of Allah 15:10
['Abdullah] Ibn Abi Al-Awfa narrated that the Messenger of Allah (ﷺ) said:
"[Indeed] 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."