The Apostle of Allah (ﷺ) performed two prostrations for forgetfulness after salutation and talking.
Sahih Muslim Book 5, Hadith 124
← Previous Hadith
The Messenger of Allah (ﷺ) said prayer and he omitted or committed (something). Ibrahim (one of the narrators of this hadith) said: It is my doubt, and it was said: Messenger of Allah, has there been any addition to the prayer? He (the Holy Prophet) said: Verily I am a human being like you. I forget just as you forget so when any one of you forgets, he must perform two prostrations, and he (the Holy Prophet) was sitting and then the Messenger of Allah (ﷺ) turned (his face towards the Qibla) and performed two prostrations.
Sahih Muslim Book 5, Hadith 123 Next Hadith → We prayed along with the Messenger of Allah (may peace he upon him) and he committed or omitted (something). Ibrahim said: By Allah, this is a misgiving of mine only. We said: Messenger of Allah, is there something new about the prayer? He (the Holy Prophet) said: No. We told him about what he had done. He (the Holy Prophet) said: When a man commits or omits (something in prayer), he should perform two prostrations, and he then himself performed two prostrations.
Sahih Muslim Book 5, Hadith 125
Sahih Muslim Book 5, Hadith 123 Next Hadith → We prayed along with the Messenger of Allah (may peace he upon him) and he committed or omitted (something). Ibrahim said: By Allah, this is a misgiving of mine only. We said: Messenger of Allah, is there something new about the prayer? He (the Holy Prophet) said: No. We told him about what he had done. He (the Holy Prophet) said: When a man commits or omits (something in prayer), he should perform two prostrations, and he then himself performed two prostrations.
Sahih Muslim Book 5, Hadith 125