Sunan an-Nasa'i, Book 13, Hadith 22 (In-Book) ⓘ
It was narrated that Jabir said: "The Messenger of Allah was ill, and we prayed behind him while he was sitting, and Abu Bakr repeated his takbirs so that the people could hear them. He turned to us and saw us standing, so he gestured to us to sit down. So we prayed behind him sitting. When he said the salam he said: 'Just now you were doing what the Persians and Romans do for their kings when they are sitting. Do not do that. Follow your Imams: If they pray standing then pray standing, and if they pray sitting then pray sitting.'"
أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا اللَّيْثُ، عَنْ أَبِي الزُّبَيْرِ، عَنْ جَابِرٍ، أَنَّهُ قَالَ اشْتَكَى رَسُولُ اللَّهِ صلى الله عليه وسلم فَصَلَّيْنَا وَرَاءَهُ وَهُوَ قَاعِدٌ وَأَبُو بَكْرٍ يُكَبِّرُ يُسْمِعُ النَّاسَ تَكْبِيرَهُ فَالْتَفَتَ إِلَيْنَا فَرَآنَا قِيَامًا فَأَشَارَ إِلَيْنَا فَقَعَدْنَا فَصَلَّيْنَا بِصَلاَتِهِ قُعُودًا فَلَمَّا سَلَّمَ قَالَ " إِنْ كُنْتُمْ آنِفًا تَفْعَلُونَ فِعْلَ فَارِسَ وَالرُّومِ يَقُومُونَ عَلَى مُلُوكِهِمْ وَهُمْ قُعُودٌ فَلاَ تَفْعَلُوا ائْتَمُّوا بِأَئِمَّتِكُمْ إِنْ صَلَّى قَائِمًا فَصَلُّوا قِيَامًا وَإِنْ صَلَّى قَاعِدًا فَصَلُّوا قُعُودًا " .
also referenced under: Hadith 1200 (Reference) & Volume 2, Book 13, Hadith 1201 (DarusSalam)