Sunan Ibn Majah 1217
سنن ابن ماجه#1217SahihIt was narrated from Abu Hurairah that the Prophet (ﷺ) said:“The Satan comes between the son of Adam and his soul, and he does not know how many Rak’ah he has prayed. If a person notices that, then let him prostrate twice before he says the Salam.”
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Al-AlbaniHasan Sahih
Muhammad Fouad Abd al-BaqiHasan Sahih
Zubair Ali ZaiHasan
In-book reference: 5:415