The Hadīth explains the action of Al-Mughīrah ibn Shu‘bah,(may Allah be pleased with him) when he was forgetful in his prayer and did not recite the first Tashahhud (after offering the second Rak‘ah). The people behind him said "Glory be to Allah" to draw his attention to it, whereupon he realized his mistake. However, he continued with his prayer and after ending the prayer with Taslīm, he made two prostrations of forgetfulness, saying that he had done what the Messenger of Allah (may Allah's peace and blessings be upon him) did in the same situation. It is more correct to perform the two prostrations of forgetfulness before Taslīm, according to the Hadīth reported by ‘Abdullāh ibn Mālik ibn Buhaynah and narrated by Al-Bukhāri and Muslim.
سنن أبي داود، سليمان بن الأشعث أبوداود، دار الفكر، تحقيق : محمد محيي الدين عبد الحميد. سنن الترمذي، محمد بن عيسى الترمذي، تحقيق: أحمد محمد شاكر وآخرين، دار إحياء التراث العربي، بيروت. مسند الإمام أحمد بن حنبل، أحمد بن حنبل أبو عبدالله الشيباني، تحقيق: شعيب الأرنؤوط و عادل مرشد، وآخرون، تحت إشراف: عبد الله بن عبد المحسن التركي، مؤسسة الرسالة، الطبعة: الأولى1421هـ، 2001م. سنن الدارمي، تحقيق: حسين سليم أسد الداراني، دار المغني للنشر والتوزيع، المملكة العربية السعودية، الطبعة: الأولى 1412هـ، 2000م. توضيح الأحكام شرح بلوغ المرام، عبد الله بن عبد الرحمن البسام، مكتبة الأسدي، مكة المكرمة، الطبعة الخامِسَة، 1423هـ، 2003 م.