وعن المغيرة بن شعبة أن رسول الله صلى الله عليه وآله وسلم قال : « إذا شك أحدكم فقام في الركعتين فاستتم قائما فليمض ولا يعود وليسجد سجدتين فإن لم يستتم قائما فليجلس ولا سهو عليه » رواه أبو داود وابن ماجه والدارقطني واللفظ له بسند ضعيف.
Narrated al-Mughira bin Shu'ba (RA): Allah's Messenger (ﷺ) said: "When one of you doubts and stands at the end of two Rak'at, if he remembers while having stood up completely he should continue and should not return (to the sitting position) and he should make two prostrations, but if he did not stand up straight he should sit down and there is no forgetfulness (prostration) upon him." [Reported Abu Dawud, Ibn Majah, and ad-Daraqutni, with a weak Sanad (chain); the wording is ad-Daraqutni's].