Anas bin Malik reported,

The Messenger of Allah ﷺ fell from a horse and scraped or injured his right side. We came to visit him, and when the time for prayer arrived, he prayed sitting down, so we prayed sitting as well.He said, "The imam is appointed only to be followed. When he says the takbir, say the takbir. When he bows, bow. When he rises, rise. When he says, 'Allah hears the one who praises Him,' say, 'Our Lord, to You belongs all praise.'"

Azami 3001

Sahih

عن أنس قال

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

الأعظمي 3001صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Istikhara prayer, prayer of the sick, prayer on a ship, tasbih prayer, prayer of need, and prayer of desires
Section
Prayer of the sick
Numbering
Jami al-Kamil 3001 (2nd edition)
Azami 3001