حَدَّثَنَا يَعْقُوبُ بْنُ مَاهَانَ ، حَدَّثَنَا هُشَيْمٌ ، عَنْ عُمَرَ بْنِ أَبِي سَلَمَةَ ، عَنْ أَبِيهِ ، عَنْ أَبِي هُرَيْرَةَ ، قَالَ : قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ : إِنَّمَا جُعِلَ الْإِمَامُ لِيُؤْتَمَّ بِهِ ، فَإِذَا كَبَّرَ فَكَبِّرُوا ، وَإِذَا رَكَعَ فَارْكَعُوا ، وَإِذَا قَالَ : سَمِعَ اللهُ لِمَنْ حَمِدَهُ ، فَقُولُوا : رَبَّنَا لَكَ الْحَمْدُ ، وَإِنْ صَلَّى قَائِمًا فَصَلُّوا قِيَامًا ، وَإِنْ صَلَّى قَاعِدًا فَصَلُّوا قُعُودًا أَجْمَعِينَ .
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The imam has been appointed only to be followed. So when he says the takbir, say the takbir; when he bows, bow; and when he says 'Sami'a Allahu liman hamidah' (Allah hears the one who praises Him), say 'Rabbana laka al-hamd' (Our Lord, to You belongs all praise); and if he prays standing, all of you pray standing, and if he prays sitting, all of you pray sitting."