It wasnarrated from Abu Hurairah that the Prophet (ﷺ) said:
"TheSatancomes to any one of you while he is praying and comes betweenhim andhis soul, until he does not know whether he as added somethingoromitted something. If that happens, then he should prostrate twicebefore the Salam, then he should say the Salam."
English reference: Vol. 1, Book 5, Hadith 1216
Arabic reference: Book 5, Hadith 1273