It is narrated from Sayyiduna Imran bin Husayn (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) led the people in prayer and made a mistake in the prayer; then he performed the two prostrations of forgetfulness, then recited the tashahhud, then said the salam.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15560