Alqama reported,

Ibn Masud performed the two prostrations of forgetfulness after the salutation and mentioned that the Prophet ﷺ had done the same.

Ibn Majah 1218

Sahih

حدثنا أبو بكر بن خلاد حدثنا سفيان بن عيينة عن منصور عن إبراهيم

عن علقمة

أن ابن مسعود سجد سجدتي السهو بعد السلام وذكر أن النبي ﷺ فعل ذلك

ابن ماجه 1218صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Whoever performs them after the salam
Numbering
Darussalam 1218
Ibn Majah 1218