[Machine] The Messenger of Allah ﷺ said, "Indeed, the imam has been appointed to be followed, so when he says 'Allahu Akbar (Allah is the Greatest),' say 'Allahu Akbar,' and when he bows, bow, and when he raises his head, raise your heads, and when he says 'Sami Allahu liman hamidah (Allah hears whoever praises Him),' say all together 'Allahumma Rabbana lakal hamd (O Allah, our Lord, all praise is for You),' and when he prostrates, prostrate, and do not prostrate before he does, and when he raises his head, raise your heads, and do not raise your heads before he does.
قَالَ رَسُولُ اللهِ ﷺ إِنَّمَا جُعِلَ الْإِمَامُ لِيُؤْتَمَّ بِهِ فَإِذَا كَبَّرَ فَكَبِّرُوا وَإِذَا رَكَعَ فَارْكَعُوا وَإِذَا رَفَعَ رَأْسَهُ فَارْفَعُوا رُءُوسَكُمْ وَإِذَا قَالَ سَمِعَ اللهُ لِمَنْ حَمِدَهُ فَقُولُوا جَمِيعًا اللهُمَّ رَبَّنَا لَكَ الْحَمْدُ وَإِذَا سَجَدَ فَاسْجُدُوا وَلَا تَسْجُدُوا قَبْلَ أَنْ يَسْجُدَ وَإِذَا رَفَعَ رَأْسَهُ فَارْفَعُوا رُءُوسَكُمْ وَلَا تَرْفَعُوا رُءُوسَكُمْ قَبْلَ أَنْ يَرْفَعَ