Abdullah bin Masud reported,

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

Muslim 1285

Sahih

و حدثنا منجاب بن الحارث التميمي أخبرنا ابن مسهر عن الأعمش عن إبراهيم عن علقمة

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

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

مسلم 1285صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Forgetfulness in prayer and sujud for it
Numbering
Darussalam 1285
Muslim 1285