Sahih Bukhari – Hadith No : 1230

Narrated `Abdullah bin Buhaina Al-Asdi: (the ally of Bani `Abdul Muttalib) Allah’s Apostle stood up for the Zuhr prayer and he should have sat (after the second rak`a but he stood up for the third rak`a without sitting for Tashah-hud) and when he finished the prayer he performed two prostrations and said Takbir on each prostration while sitting, before ending (the prayer) with Taslim; and the people too performed the two prostrations with him instead of the sitting he forgot.

Hadith In Arabic Text :

حدثنا قتيبة بن سعيد، حدثنا ليث، عن ابن شهاب، عن الأعرج، عن عبد الله ابن بحينة الأسدي، حليف بني عبد المطلب أن رسول الله صلى الله عليه وسلم قام في صلاة الظهر وعليه جلوس، فلما أتم صلاته سجد سجدتين فكبر في كل سجدة وهو جالس قبل أن يسلم، وسجدهما الناس معه مكان ما نسي من الجلوس‏.‏ تابعه ابن جريج عن ابن شهاب في التكبير‏.‏

Chapter : Forgetfulness in Prayer – كتاب السهو