Jabir bin Abdullah reported,

He said that the Messenger of Allah ﷺ fell ill, so we prayed behind him while he was seated, and Abu Bakr was relaying the takbir so the people could hear it. He turned to us and saw us standing, so he gestured to us and we sat down, and we prayed his prayer sitting.When he gave the salam, he said, "Just now you were doing what the Persians and Romans do. They stand before their kings while their kings are seated. Do not do that. Follow your imams. If he prays standing, then pray standing, and if he prays sitting, then pray sitting."

Nasai 1201

Sahih

أخبرنا قتيبة قال حدثنا الليث عن أبي الزبير

عن جابر

أنه قال اشتكى رسول الله ﷺ فصلينا وراءه وهو قاعد وأبو بكر يكبر يسمع الناس تكبيره فالتفت إلينا فرآنا قياما فأشار إلينا فقعدنا فصلينا بصلاته قعودا فلما سلم قال إن كنتم آنفا تفعلون فعل فارس والروم يقومون على ملوكهم وهم قعود فلا تفعلوا ائتموا بأئمتكم إن صلى قائما فصلوا قياما وإن صلى قاعدا فصلوا قعودا

النسائي 1201صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Forgetfulness
Chapter
Concession for turning right and left during prayer
Numbering
Darussalam 1201
Nasai 1201