Hazrat Muhammad (SAW) rode a horse and fell down and the right side of his body was injured. On that day he prayed one of the prayers sitting and we also prayed behind him sitting. When he finished the prayer with Taslim, he said, “The Imam is to be followed and if he prays standing then pray standing, and bow when he bows, and raise your heads when he raises his head; prostrate when he prostrates; and if he says “Sami’a-l-lahu Liman hamida”, you should say, “Rabbana wa-laka-l hamd.
Sahih Al-Bukhari, Vol 1, Hadith No. 699