Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:3797Abū al-Ḥusayn ʿAlī b. Muḥammad b. ʿAbdullāh b. Bishrān al-ʿAdl> Ismāʿīl b. Muḥammad al-Ṣaffār And ʾAbū Jaʿfar Muḥammad b. ʿAmr al-Razzāz > Saʿdān b. Naṣr > Muḥammad b. ʿUbayd > Misʿar > Manṣūr > Ibrāhīm > ʿAlqamah > Ibn Masʿūd

[Machine] The Messenger of Allah ﷺ said, "I am only a human being, I forget just as you forget. So, whoever doubts his prayer should seek guidance from what iscorrect and complete it. Then, they should prostrate two prostrations."  

البيهقي:٣٧٩٧أَخْبَرَنَا أَبُو الْحُسَيْنِ عَلِيُّ بْنُ مُحَمَّدِ بْنِ عَبْدِ اللهِ بْنِ بِشْرَانَ الْعَدْلُ بِبَغْدَادَ أنبأ إِسْمَاعِيلُ بْنُ مُحَمَّدٍ الصَّفَّارُ وَأَبُو جَعْفَرٍ مُحَمَّدُ بْنُ عَمْرٍو الرَّزَّازُ قَالَا ثنا سَعْدَانُ بْنُ نَصْرٍ ثنا مُحَمَّدُ بْنُ عُبَيْدٍ عَنْ مِسْعَرٍ عَنْ مَنْصُورٍ عَنْ إِبْرَاهِيمَ عَنْ عَلْقَمَةَ عَنِ ابْنِ مَسْعُودٍ قَالَ

قَالَ رَسُولُ اللهِ ﷺ إِنَّمَا أَنَا بَشَرٌ أَنْسَى كَمَا تَنْسَوْنَ فَأَيُّكُمْ شَكَّ فِي صَلَاتِهِ فَلْيَنْظُرْ أَحْرَى ذَلِكَ إِلَى الصَّوَابِ فَلْيُتِمَّ عَلَيْهِ وَيَسْجُدْ سَجْدَتَيْنِ  

أَخْرَجَهُ مُسْلِمٌ مِنْ حَدِيثِ مِسْعَرِ بْنِ كِدَامٍ وَأَخْرَجَهُ الْبُخَارِيُّ مِنْ وَجْهٍ آخَرَ عَنْ مَنْصُورِ بْنِ الْمُعْتَمِرِ

See similar narrations below:

Collected by Aḥmad
ahmad:4348Muḥammad b. ʿUbayd > Misʿar > Manṣūr > Ibrāhīm > ʿAlqamah > ʿAbdullāh

[Machine] The Messenger of Allah ﷺ said: "I am only a human being, and I forget just as you forget. So, whoever has any doubts in his prayer should consider what is most correct, complete it and then perform two prostrations."  

أحمد:٤٣٤٨حَدَّثَنَا مُحَمَّدُ بْنُ عُبَيْدٍ حَدَّثَنَا مِسْعَرٌ عَنْ مَنْصُورٍ عَنْ إِبْرَاهِيمَ عَنْ عَلْقَمَةَ عَنْ عَبْدِ اللهِ قَالَ

قَالَ رَسُولُ اللهِ ﷺ إِنَّمَا أَنَا بَشَرٌ أَنْسَى كَمَا تَنْسَوْنَ فَأَيُّكُمْ مَا شَكَّ فِي صَلَاتِهِ فَلْيَنْظُرْ أَحْرَى ذَلِكَ الصَّوَابَ فَلْيُتِمَّ عَلَيْهِ وَيَسْجُدْ سَجْدَتَيْنِ