(25) باب التَّحَرِّي
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 reference: Book 13, Hadith 62
English translation: Vol. 2, Book 13, Hadith 1241
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.