(27) باب مَا يَفْعَلُ مَنْ نَسِيَ شَيْئًا مِنْ صَلاَتِهِ
It was narrated from Muhammad bin Yusuf, the freed slave of Uthman, from his father Yusuf, that:
Mu'awiyah prayed in front of them, and he stood up during the prayer when he should have sat. The people said tasbih, but he remained standing, then he prostrated twice while he was sitting, after he completed the prayer. Then he sat on the Minbar and said: 'I heard the Messenger of Allah (ﷺ) say: 'Whoever forgets something in his prayer, let him prostrate twice like this.'
Reference: Sunan an-Nasa'i 1260
In-book reference: Book 13, Hadith 82
English translation: Vol. 2, Book 13, Hadith 1261