Full Sharh — Mishkat al-Masabih 3561
وَعَنِ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «إِنَّ السُّلْطَانَ ظِلُّ اللَّهِ فِي الْأَرْضِ يَأْوِي إِلَيْهِ كُلُّ مَظْلُومٍ مِنْ عِبَادِهِ فَإِذَا عَدَلَ كَانَ لَهُ الْأَجْرُ وَعَلَى الرَّعِيَّةِ الشُّكْرُ وَإِذَا جَارَ كَانَ عَلَيْهِ الْإِصْرُ وعَلى الرّعية الصَّبْر»
English Translation
Ibn ‘Umar reported the Prophet as saying, “The sultan is God’s shade on the earth to which each one of His servants who is wronged repairs. When he is just he will have a reward, and it is the duty of the common people to be grateful; but when he acts tyrannically the burden rests on him, and it is the duty of the common people to show endurance.” Baihaqi transmitted in Shuab al iman.
Source
Mishkat al-Masabih(مشكاة المصابيح)
The Offices of Commander and Qadi
Hadith Number
3561