The Messenger of Allah ﷺ said, "Satan comes to one of you and confuses him in his prayer so that he does not know whether he has added or omitted something. When any of you experiences this, let him perform two prostrations while seated."
حدثنا عبد الرزاق أخبرنا معمر وعبد الأعلى عن معمر عن الزهري عن أبي سلمة
قال رسول الله ﷺ يأتي أحدكم الشيطان فيلبس عليه في صلاته فلا يدري أزاد أم نقص فإذا وجد أحدكم ذلك فليسجد سجدتين وهو جالس