Sahih al-Bukhari 733
Qutaibah bin Sa'id narrated to us, he said: Laith told us. He narrated from Ibn Shihab, Ibn Shihab from Hazrat Anas (ra) bin Malik. He said that the Messenger of Allah (saw) fell from a horse and his body was grazed. So he led us in prayer sitting, and we prayed sitting with him. Then he finished (the Prayer) and said: “The Imam is only for this”, or (he said:) “The Imam is appointed only to be followed. So when he says ‘Allahu akbar’, you too say ‘Allahu akbar’; when he bows, you too bow; when he raises his head, you too raise your heads; when he says ‘Sami'allahu liman hamidah’ (Allah hears whoever praises Him), say ‘Rabbana lakal hamd’ (Our Lord, to You belongs all praise); and when he prostrates, you too prostrate.”
AI-translated by Islam-Today