[Machine] "If you doubt the number of rak'ahs you have performed in your prayer while sitting, and you are unsure whether you have prayed three or four rak'ahs, then if you are more inclined to believe that you have prayed three, then stand up, perform one rakah, then prostrate twice, then recite the final tashahhud, then conclude the prayer. But if you are more inclined to believe that you have prayed four, then conclude the prayer, then prostrate twice, then recite the final tashahhud, then conclude the prayer."
إِذَا شَكَكْتَ فِي صَلَاتِكَ وَأَنْتَ جَالِسٌ فَلَمْ تَدْرِ ثَلَاثًا صَلَّيْتَ أَمْ أَرْبَعًا فَإِنْ كَانَ أَكْبَرُ ظَنِّكَ أَنَّكَ صَلَّيْتَ ثَلَاثًا فَقُمْ فَارْكَعْ رَكْعَةً ثُمَّ سَلِّمْ ثُمَّ اسْجُدْ سَجْدَتَيْنِ ثُمَّ تَشَهَّدْ ثُمَّ سَلِّمْ وَإِنْ كَانَ أَكْبَرُ ظَنِّكَ أَنَّكَ صَلَّيْتَ أَرْبَعًا فَسَلِّمْ ثُمَّ اسْجُدْ سَجْدَتَيْنِ ثُمَّ تَشَهَّدْ ثُمَّ سَلِّمْ