Sunan an-Nasa'i 1238
سنن النسائي#1238SahihIt was narrated from Abu Sa'eed that:The Prophet (ﷺ) said: "If one of you is not sure about his prayer, let him forget about what he is unsure of and complete his prayer on the basis of what he is sure of. When he is sure that he has completed it, let him prostrate twice while he is sitting. Then if he has prayed five (rak'ahs), they (the two prostrations) will make his prayer even-numbered, and if he had prayed four, they will annoy and humiliate the shaitan
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Abu GhuddahHasan Sahih
Al-AlbaniHasan Sahih
Zubair Ali ZaiSahih Muslim
In-book reference: 13:60