The Messenger of Allah ﷺ said, "Whoever obeys me has obeyed Allah, and whoever obeys the leader has obeyed me. Whoever disobeys me has disobeyed Allah, and whoever disobeys the leader has disobeyed Allah."
حدثنا وكيع قال حدثنا الأعمش عن أبي صالح
قال رسول الله ﷺ من أطاعني فقد أطاع الله ومن أطاع الإمام فقد أطاعني ومن عصاني فقد عصى الله ومن عصى الإمام فقد عصى الله عز وجل