It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that "the Prophet (peace and blessings be upon him) spoke during the prayer out of forgetfulness, and he (peace and blessings be upon him) built (the rest of the prayer) on what he had already prayed."
Imam al-Tabarani (may Allah have mercy on him) said: "No one other than Mu'alla (may Allah have mercy on him) narrated this hadith from Hammad (may Allah have mercy on him)."
Hadith Referenceالمعجم الأوسط / باب الألف / 1582
Hadith Gradingمحدثین:فيه معلى بن مهدي، وفيه كلام
Hadith Takhrij«قال الهيثمي: فيه معلى بن مهدي قال أبو حاتم يأتي أحيانا بالمناكير قال الذهبي هو من العباد صدوق في نفسه «مجمع الزوائد ومنبع الفوائد، ج 2، ص 81»»