Abdullah bin Masud reported,

The Messenger of Allah ﷺ led the prayer and either added or omitted something. Ibrahim said, "The uncertainty is from me."It was said to him, "Messenger of Allah, has something been added to the prayer?"He replied, "I am only a human being. I forget just as you forget. So when one of you forgets, let him perform two prostrations while seated."Then the Prophet ﷺ turned and performed two prostrations.

Ibn Majah 1203

Sahih

حدثنا عبد الله بن عامر بن زرارة حدثنا علي بن مسهر عن الأعمش عن إبراهيم عن علقمة

عن عبد الله قال

صلى رسول الله ﷺ فزاد أو نقص قال إبراهيم والوهم مني فقيل له يا رسول الله أزيد في الصلاة شيء قال إنما أنا بشر أنسى كما تنسون فإذا نسي أحدكم فليسجد سجدتين وهو جالس ثم تحول النبي ﷺ فسجد سجدتين

ابن ماجه 1203صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Forgetfulness in prayer
Numbering
Darussalam 1203
Ibn Majah 1203