It is narrated from Abdullah bin Buhaynah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) stood up after two rak'ahs, then he performed the two prostrations of forgetfulness (sahw).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 2802