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:3375Abū ʿAbdullāh Muḥammad b. Aḥmad b. Abū Ṭāhir al-Daqqāq> Aḥmad b. Salmān al-Faqīh > al-Ḥasan b. Mukram > ʿAlī b. ʿĀṣim > Suhayl b. Abū Ṣāliḥ from his father > Abū Hurayrah

[Machine] The Messenger of Allah ﷺ said: "If any of you experiences doubts during their prayer, whether something came out or not, they should not leave the prayer until they hear a sound or detect a scent."  

البيهقي:٣٣٧٥أَخْبَرَنَا أَبُو عَبْدِ اللهِ مُحَمَّدُ بْنُ أَحْمَدَ بْنِ أَبِي طَاهِرٍ الدَّقَّاقُ بِبَغْدَادَ أنبأ أَحْمَدُ بْنُ سَلْمَانَ الْفَقِيهُ ثنا الْحَسَنُ بْنُ مُكْرَمٍ ثنا عَلِيُّ بْنُ عَاصِمٍ أنبأ سُهَيْلُ بْنُ أَبِي صَالِحٍ عَنْ أَبِيهِ عَنْ أَبِي هُرَيْرَةَ قَالَ

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


See similar narrations below:

Collected by Muslim
muslim:362Zuhayr b. Ḥarb > Jarīr > Suhayl from his father > Abū Hurayrah

The Messenger of Allah ﷺ said: If any one of you has pain in his abdomen, but is doubtful whether or not anything has issued from him, be should not leave the mosque unless he hears a sound or perceives a smell.  

مسلم:٣٦٢وَحَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ حَدَّثَنَا جَرِيرٌ عَنْ سُهَيْلٍ عَنْ أَبِيهِ عَنْ أَبِي هُرَيْرَةَ قَالَ

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