Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates: The Prophet Muhammad (peace and blessings be upon him) called the two prostrations of forgetfulness two things that disgrace (the devil).
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 2655
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «صحيح أبي داود» تحت الحديث (940). تنبيه!! هذا الحديث لم يرد في «طبعة باوزير» إلا في هذا الموضع بينما في «طبعة المؤسسة» ورد في هذا الموضع وورد أيضا برقم (2689). وهو مكرر ولا فرق بينهما. - مدخل بيانات الشاملة -.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده ضعيف
Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) led us in prayer. He either added something to it or perhaps omitted something. When the Prophet (peace and blessings be upon him) completed the prayer, we said: O Messenger of Allah (peace and blessings be upon him)! Has a new command regarding the prayer been revealed? The narrator says: The Prophet (peace and blessings be upon him) spread out one of his legs and performed two prostrations of forgetfulness (sajda sahw). Then he said: If a new command regarding the prayer had been revealed, I would have informed you about it, but I am also a human being, I forget just as you forget, so when I forget, remind me. And when anyone is uncertain about his prayer, he should try to determine what is correct, base his prayer on that, and then (at the end) perform two prostrations of forgetfulness.
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 2656
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «صحيح أبي داود» (935)، «الإرواء» (2/ 45 - 46): ق.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط البخاري