كتاب الصلاة
4  
The Book of Prayers
(19)
Chapter: Following The Imam
(19)
باب ائْتِمَامِ الْمَأْمُومِ بِالإِمَامِ ‏
Sahih Muslim 411 d

Anas reported:

The Messenger of Allah (ﷺ) rode a horse and fell down from it and his right side was grazed, and the rest of the hadith is the same, and (these words) are found in it:" When he (the Imam) says prayer in an erect posture, you should also say it in an erect posture."
حَدَّثَنَا ابْنُ أَبِي عُمَرَ، حَدَّثَنَا مَعْنُ بْنُ عِيسَى، عَنْ مَالِكِ بْنِ أَنَسٍ، عَنِ الزُّهْرِيِّ، عَنْ أَنَسٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم رَكِبَ فَرَسًا فَصُرِعَ عَنْهُ فَجُحِشَ شِقُّهُ الأَيْمَنُ ‏.‏ بِنَحْوِ حَدِيثِهِمْ وَفِيهِ ‏ "‏ إِذَا صَلَّى قَائِمًا فَصَلُّوا قِيَامًا ‏"‏ ‏.‏
Reference : Sahih Muslim 411d
In-book reference : Book 4, Hadith 86
USC-MSA web (English) reference : Book 4, Hadith 820
  (deprecated numbering scheme)