The Prophet ﷺ performed those two prostrations after the salam. On another occasion he reported that the Prophet ﷺ performed the two prostrations of forgetfulness after the salam.
حدثنا سفيان عن منصور عن إبراهيم عن علقمة
أن النبي ﷺ سجدهما بعد السلام وقال مرة إن النبي ﷺ سجد السجدتين في السهو بعد السلام
No references are available.
Its isnad is sahih, see 3570.