Abu Huraira reported God’s messenger as saying, “If any of you has a pain in his abdomen, but is doubtful whether or not anything has issued from him, he should not leave the mosque unless he hears a sound or perceives a smell.”
Muslim transmitted it.