The Messenger of Allah ﷺ said, "If any of you is in prayer and feels movement in his rear, uncertain whether he has broken his ablution or not, he should not leave the prayer until he hears a sound or detects an odor."
حدثنا موسى بن إسمعيل حدثنا حماد أخبرنا سهيل بن أبي صالح عن أبيه
أن رسول الله ﷺ قال إذا كان أحدكم في الصلاة فوجد حركة في دبره أحدث أو لم يحدث فأشكل عليه فلا ينصرف حتى يسمع صوتا أو يجد ريحا