Abu Hurairah reported,

The Messenger of Allah ﷺ said, "If one of you feels something in his stomach and is uncertain whether anything has come out of him or not, he should not leave the mosque until he hears a sound or detects an odor."

Muslim 805

Sahih

و حدثني زهير بن حرب حدثنا جرير عن سهيل عن أبيه

عن أبي هريرة قال

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

مسلم 805صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Menstruation
Chapter
Proof that whoever is certain of purification then doubts having broken it may pray with that purification
Numbering
Darussalam 805
Muslim 805