Mishkat al-Masabih 1016
وَعَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ: أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ صَلَّى الظُّهْرَ خَمْسًا فَقِيلَ لَهُ: أَزِيدَ فِي الصَّلَاةِ؟ فَقَالَ: «وَمَا ذَاكَ؟» قَالُوا: صَلَّيْتَ خَمْسًا. فَسَجَدَ سَجْدَتَيْنِ بَعْدَمَا سَلَّمَ. وَفِي رِوَايَةٍ: قَالَ: «إِنَّمَا أَنَا بَشَرٌ مِثْلُكُمْ أَنْسَى كَمَا تَنْسَوْنَ فَإِذَا نَسِيتُ فَذَكِّرُونِي وَإِذَا شَكَّ أَحَدُكُمْ فِي صَلَاتِهِ فَلْيَتَحَرَّ الصَّوَابَ فَلْيُتِمَّ عَلَيْهِ ثُمَّ لِيُسَلِّمْ ثمَّ يسْجد سَجْدَتَيْنِ»
From ʿAbdullah ibn Masʿud: The Messenger of Allah ﷺ prayed Zuhr as five [rakʿahs]. It was said to him: "Has something been added to the prayer?" He said: "And what is that?" They said: "You prayed five." So he prostrated twice after he had given the salam. In a narration he said: "I am only a human being like you; I forget as you forget, so when I forget, remind me. And when one of you is in doubt in his prayer, let him aim for what is correct and complete [his prayer] on that basis, then give the salam, then prostrate twice."