The Two Prostrations Of Forgetfulness Are Accompanied By The Tashah-hud And The Taslim Sunan Abi Dawud 1039
Translation
Narrated Imran ibn Husayn
The Prophet (ﷺ) led them in prayer and forgot, so he performed two prostrations, then recited the tashahhud, and then gave the salutation.