عن عبد الله بن بُحَيْنَةَ رضي الله عنه وكان من أصحاب النبي صلى الله عليه وسلم «أن النبي صلى الله عليه وسلم صلَّى بهم الظهر فقام في الركعتين الأُولَيَيْنِ، ولم يَجْلِسْ، فقام الناس معه، حتى إذا قضى الصلاة وانتظر الناس تسليمه: كَبَّرَ وهو جالس فسجد سجدتين قبل أن يُسَلِّمَ ثُمَّ سَلَّمَ».
The Prophet (may Allah's peace and blessings be upon him) led his Companions in the Zhuhr prayer. After completing the first two Rak‘ahs, he stood without sitting for the first Tashahhud. The people behind him followed suit. When he performed the last two Rak‘ahs and people were expecting him to make Taslīm, he said ''Allah Akbar'' while sitting and performed two prostrations, which are the two prostrations of forgetfulness, and then he made Taslīm.
Those extra prostrations made up for the missed Tashahhud.
Download for free and never miss a prayer again