It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him): "The Prophet (peace and blessings be upon him) led the Companions in the Zuhr or Asr prayer, and he (peace and blessings be upon him) stood up after two rak'ahs (instead of sitting for the tashahhud). Thereupon the Companions reminded him (peace and blessings be upon him) by saying Subhan Allah, but he (peace and blessings be upon him) continued onward in his prayer; then, when he (peace and blessings be upon him) had completed the prayer, he made two prostrations (of forgetfulness) and then gave the salam." Imam al-Bazzar narrated it with a sahih (authentic) chain.
Hadith Takhrij«بسند صحيح ولفظه عن أبي هريرة "أن النبي صلى الله عليه وسلم صلى بهم صلاة الظهر أو العصر، فقام في الركعتين فسبحوا به، فمضى في صلاته، فلما قضى الصلاة سجد سجدتين ثم سلم "»