It was narrated from 'Abdullah and attributed to the Prophet (ﷺ):
"If one of you is not sure about his prayer, let him estimate what he thinks is most likely to be correct and complete the prayer on that basis, then let him prostrate twice."
Reference: Sunan an-Nasa'i 1240 In-book : Book 13, Hadith 62 English translation : Vol. 2, Book 13, Hadith 1241
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.