Uthmaan ibn Abi’l-Aas (radi Allahu anhu) came to the Prophet (sal Allahu alaihi wa sallam) and said: “The Shaytaan comes between me and my prayer and recitation of Quran, and he is confusing me.” The Messenger of Allah (sal Allahu alaihi wa sallam) said: “That is a devil called Khinzab. If you notice that, then seek refuge with Allah from him, and spit drily to your left three times.” Uthmaan ibn Abi’l-Aas (radi Allahu anhu) said: “I did that, and Allah took him away from me.” [Muslim]
This hadith tells us what to do if in the middle of Salaat we feel distracted or get confused.
If the Shaytaan is not able to prevent people from obeying Allah, then he strives to corrupt their acts of worship and obedience, so that he can deprive them of the reward. We should seek protection with Allah (subhana wa ta’ala) from the devil by saying “Aoodhu billahi minash shaytaan ir-rajeem” before beginning any good deed.