Anas bin Malik reported,

The Messenger of Allah ﷺ fell from a horse onto his right side. People came in to visit him, and when the time for prayer arrived, he led them in prayer. When he finished, he said, "The imam is appointed only to be followed. When he bows, bow. When he rises, rise. When he prostrates, prostrate. And when he says, 'Allah hears the one who praises Him,' say, 'Our Lord, to You belongs all praise.'"

Nasai 795

Sahih

أخبرنا هناد بن السري عن ابن عيينة عن الزهري

عن أنس

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

النسائي 795صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Leadership
Chapter
Following the imam
Numbering
Darussalam 795
Nasai 795