Mughira bin Shuba reported,

The Messenger of Allah ﷺ led us in prayer and stood up after the second rakah without sitting. We said "Subhan Allah" to alert him, but he continued. When he completed the prayer, he performed the two prostrations of forgetfulness.On another occasion he said, those behind him said "Subhan Allah," and he gestured to them to remain standing.

Ahmad 18216

Sahih

حدثنا يزيد أخبرنا المسعودي عن زياد بن علاقة

عن المغيرة بن شعبة قال

صلى بنا رسول الله ﷺ فنهض في الركعتين فسبحنا به فمضى فلما أتم الصلاة سجد سجدتي السهو وقال مرة فسبح به من خلفه فأشار أن قوموا

أحمد 18216صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Mughira bin Shuba
Numbering
Darussalam 18216
Ahmad 18216