It was narrated from 'Abdullah bin Abu Awfa that the Messenger of Allah (ﷺ) said:“Allah is with the judge so long as he is not unjust, but if he rules unjustly, He entrusts him to himself.”
Hadith No. 2312
Sunan Ibn Majah
Gradings:
Al-Albani:
Hasan
Muhammad Fouad Abd al-Baqi:
Hasan
Zubair Ali Zai:
Isnaad Hasan