988 - حَدَّثَنَا الْحُمَيْدِيُّ قَالَ: ثنا سُفْيَانُ، قَالَ: ثنا أَبُو الزِّنَادِ، عَنِ الْأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّي اللهُ عَلَيْهِ وَسَلَّمَ: «الْإِمَامُ أَمِيرٌ، فَإِنْ صَلَّي قَاعِدًا فَصَلُّوا قُعُودًا، وَإِنْ صَلَّي قَائِمًا فَصَلُّوا قِيَامًا»
Sayyiduna Abu Huraira (may Allah be pleased with him) narrates that the Noble Prophet (peace and blessings be upon him) said: "The Imam is a leader; if he performs the prayer sitting, then you should also perform the prayer sitting; if he performs the prayer standing, then you should also perform the prayer standing."
Related hadith on this topic