Abu Hurairah reported,

I heard the Messenger of Allah ﷺ say, "Whoever obeys me has obeyed Allah, and whoever disobeys me has disobeyed Allah. Whoever obeys the commander has obeyed me. The commander is but a shield. If he prays sitting, then pray sitting. When he says, 'Allah hears the one who praises Him,' say, 'O Allah, our Lord, to You belongs all praise,' for if the words of the people of the earth coincide with the words of the people of heaven, his past sins will be forgiven."

Ahmad 9385

Sahih

حدثنا عفان وبهز قالا حدثنا أبو عوانة عن يعلى بن عطاء عن أبي علقمة الأنصاري قال

حدثني أبو هريرة من فيه إلى في قال

سمعت رسول الله ﷺ يقول من أطاعني فقد أطاع الله ومن عصاني فقد عصى الله ومن أطاع الأمير فقد أطاعني إنما الأمير مجن فإن صلى جالسا فصلوا جلوسا أو قعودا فإذا قال سمع الله لمن حمده فقولوا اللهم ربنا لك الحمد فإنه إذا وافق قول أهل الأرض قول أهل السماء غفر له ما مضى من ذنبه

أحمد 9385صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 9385
Ahmad 9385