Anas bin Malik reported,

The Messenger of Allah ﷺ led us in prayer one day. When he finished, he turned to face us and said, "People, I am your imam, so do not precede me in bowing, in prostration, in standing, or in leaving. For I see you in front of me and behind me."Then he said, "By the One in whose hand is the soul of Muhammad, if you saw what I have seen, you would laugh little and weep much."They asked, "What did you see, Messenger of Allah?"He replied, "I saw Paradise and the Fire."

Azami 2289

Sahih

عن أنس قال

صلى بنا رسول الله ﷺ ذات يوم فلما قضى الصلاة أقبل علينا بوجهه فقال: أيها الناس! إني إمامكم فلا تسبقوني بالركوع ولا بالسجود، ولا بالقيام، ولا بالانصراف، فإني أراكم أمامي ومن خلفي ثم قال: والذي نفس محمد بيده! لو رأيتم ما رأيت لضحكتم قليلا، ولبكيتم كثيرا. قالوا: وما رأيت يا رسول الله؟ قال: رأيت الجنة والنار.

الأعظمي 2289صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Leadership
Section
Prohibition of preceding the imam in ruku, sujud, or departing
Numbering
Jami al-Kamil 2289 (2nd edition)
Azami 2289