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.
nasai-kubra:1164Muḥammad b. Rāfiʿ > Yaḥyá b. Ādam > Mufaḍḍal / Ibn Muhalhil > Manṣūr > Ibrāhīm > ʿAlqamah

"If one of you is not sure about his prayer, let him estimate what he thinks is most likely to be correct and complete the prayer on that basis, then let him prostrate twice." (Using translation from Nasāʾī 1240)   

الكبرى للنسائي:١١٦٤أَخْبَرَنِي مُحَمَّدُ بْنُ رَافِعٍ قَالَ حَدَّثَنَا يَحْيَى بْنُ آدَمَ قَالَ حَدَّثَنَا مُفَضَّلٌ وَهُوَ ابْنُ مُهَلْهِلٍ عَنْ مَنْصُورٍ عَنْ إِبْرَاهِيمَ عَنْ عَلْقَمَةَ

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


See similar narrations below:

Collected by Nasāʾī, Ṭabarānī
nasai:1240Muḥammad b. Rāfiʿ > Yaḥyá b. Ādam > Mufaḍḍal / Ibn Muhalhal > Manṣūr > Ibrāhīm > ʿAlqamah > ʿAbdullāh

"If one of you is not sure about his prayer, let him estimate what he thinks is most likely to be correct and complete the prayer on that basis, then let him prostrate twice."  

النسائي:١٢٤٠أَخْبَرَنَا مُحَمَّدُ بْنُ رَافِعٍ قَالَ حَدَّثَنَا يَحْيَى بْنُ آدَمَ قَالَ حَدَّثَنَا مُفَضَّلٌ وَهُوَ ابْنُ مُهَلْهَلٍ عَنْ مَنْصُورٍ عَنْ إِبْرَاهِيمَ عَنْ عَلْقَمَةَ عَنْ عَبْدِ اللَّهِ

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

tabarani:9827Aḥmad b. Shuʿayb Abū ʿAbd al-Raḥman al-Nasāʾī > Muḥammad b. Rāfiʿ al-Naysābūrī > Yaḥyá b. Ādam > Mufaḍḍal b. Muhalhal > Manṣūr > Ibrāhīm > ʿAlqamah > ʿAbdullāh

[Machine] The Prophet ﷺ said, "If any one of you has doubts about his prayer, he should follow what he thinks is correct and complete it, then make two prostrations."  

الطبراني:٩٨٢٧حَدَّثَنَا أَحْمَدُ بْنُ شُعَيْبٍ أَبُو عَبْدِ الرَّحْمَنِ النَّسَائِيُّ أنا مُحَمَّدُ بْنُ رَافِعٍ النَّيْسَابُورِيُّ ثنا يَحْيَى بْنُ آدَمَ عَنْ مُفَضَّلِ بْنِ مُهَلْهَلٍ عَنْ مَنْصُورٍ عَنْ إِبْرَاهِيمَ عَنْ عَلْقَمَةَ عَنْ عَبْدِ اللهِ

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