Anas bin Malik reported,

The Messenger of Allah ﷺ led us in prayer one day, and when he finished the prayer, he turned his face toward us and said, "People, I am your imam, so do not precede me in bowing, prostrating, standing, or leaving the prayer, 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 had seen 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."

Muslim 961

Sahih

حدثنا أبو بكر بن أبي شيبة وعلي بن حجر واللفظ لأبي بكر قال ابن حجر أخبرنا وقال أبو بكر حدثنا علي بن مسهر عن المختار بن فلفل

عن أنس قال

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

مسلم 961صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
Prohibition of preceding the imam in ruku, sujud, and similar actions
Numbering
Darussalam 961
Muslim 961