“The Messenger of Allah (ﷺ)
prayed, and he added or omitted something.” (One of the narrators)
Ibrahim said: “The confusion stems from me (i.e., he was not sure
which it was).” “It was said to him: ‘O Messenger of Allah! Has
something been added to the prayer?’ He said: ‘I am only human, I
forget just as you forget. If anyone forgets, let him perform two
prostrations when he is sitting (at the end).’ Then the Prophet
(ﷺ)
turned and prostrated twice.”
Sunan Ibn Majah Book 5, Hadith 401