The Messenger of Allah ﷺ said, "Satan comes to one of you while he is in his prayer and grabs a hair from his backside and pulls it, so he thinks he has broken his ablution. Let him not leave the prayer until he hears a sound or smells an odor."
حدثنا عفان حدثنا حماد بن سلمة عن علي بن زيد عن أبي نضرة عن سعيد بن المسيب
أن رسول الله ﷺ قال إن الشيطان يأتي أحدكم وهو في صلاته فيأخذ بشعرة من دبره فيمدها فيرى أنه قد أحدث فلا ينصرف حتى يسمع صوتا أو يجد ريحا