Sunan Abi Dawud 1030
Grading supplied with this record: Sahih (Al-Albani)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنَّ أَحَدَكُمْ إِذَا قَامَ يُصَلِّي جَاءَهُ الشَّيْطَانُ فَلَبَسَ عَلَيْهِ حَتَّى لاَ يَدْرِي كَمْ صَلَّى فَإِذَا وَجَدَ أَحَدُكُمْ ذَلِكَ فَلْيَسْجُدْ سَجْدَتَيْنِ وَهُوَ جَالِسٌ "
Abu Hurairah reported the Messenger of Allah (ﷺ) as saying; When one of you stands up to pray, the devil comes to him and confuses him so that he does not know how much he has prayed. If any of you has such an experience, he should perform two prostrations while he is sitting. Abu Dawud said; This tradition has been narrated in a similar manner by Ibn "Uyainab, Ma'mar and al-Laith.
Full reference and source
Sunan Abi Dawud 1030 In-book : Book 2, Hadith 641 English translation : Book 2, Hadith 1025
View source on Sunnah.com (opens in a new tab)