English : Vol. 1, Book 5, Hadith 1209
Grading supplied with this record: Hasan (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِذَا شَكَّ أَحَدُكُمْ فِي الثِّنْتَيْنِ وَالْوَاحِدَةِ فَلْيَجْعَلْهَا وَاحِدَةً وَإِذَا شَكَّ فِي الثِّنْتَيْنِ وَالثَّلاَثِ فَلْيَجْعَلْهَا ثِنْتَيْنِ وَإِذَا شَكَّ فِي الثَّلاَثِ وَالأَرْبَعِ فَلْيَجْعَلْهَا ثَلاَثًا ثُمَّ لْيُتِمَّ مَا بَقِيَ مِنْ صَلاَتِهِ حَتَّى يَكُونَ الْوَهْمُ فِي الزِّيَادَةِ ثُمَّ يَسْجُدْ سَجْدَتَيْنِ وَهُوَ جَالِسٌ قَبْلَ أَنْ يُسَلِّمَ "
It was narrated that "Abdur-Rahman bin "Awf said:
"I heard the Messenger of Allah (ﷺ) say: "If anyone of you is uncertain as to whether he has prayed one or two Rak'ah, let him assume it is one. If he is uncertain as to whether he has prayed two or three, let him assume it is two. If he is uncertain as to whether he has prayed three or four, let him assume it is three. Then let him complete what is left of his prayer, so that the doubt will be about what is more. Then let him prostrate twice while he is sitting, before the Taslim (saying the Salam).'"
Full reference and source
English : Vol. 1, Book 5, Hadith 1209 Arabic : Book 5, Hadith 1266
View source on Sunnah.com (opens in a new tab)