It has been narrated on the authority of Abu Hurairah (RA) that the Messenger of Allah (ﷺ) said: Whoso obeys me obeys God; and whose disobeys me disobeys God. Whoso obeys my commander obeys me, and whoso disobeys my commander disobeys me.
Hadith ReferenceSahih Muslim / The Book on Government / Hadith: 1835