Sahih al-Bukhari 5658
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنَّ الإِمَامَ لَيُؤْتَمُّ بِهِ، فَإِذَا رَكَعَ فَارْكَعُوا وَإِذَا رَفَعَ فَارْفَعُوا، وَإِنْ صَلَّى جَالِسًا فَصَلُّوا جُلُوسًا "
Narrated `Aisha:
During the ailment of the Prophet (ﷺ) some people came to visits him. He led them in prayer while sitting. but they prayed standing, so he waved to them to sit down. When he had finished the prayer, he said, "An Imam is to be followed, so when he bows, you should bow. and when he raises his head, you should raise yours, and if he prays sitting. you should pray sitting." Abu `Abdullah said Al-Humaidi said, (The order of ) "This narration has been abrogated by the last action of the Prophet (ﷺ) as he led the prayer sitting, while the people prayed standing behind him.'
Full reference and source
Sahih al-Bukhari 5658 In-book : Book 75, Hadith 19 USC-MSA web (English) : Vol. 7, Book 70, Hadith 562 (deprecated)
View source on Sunnah.com (opens in a new tab)