[Machine] From the Prophet ﷺ: He said, "If you are in prayer and you have doubts in three or four or more, then your doubt is on four, then you should make the Tashahhud, then prostrate two prostrations while you are in a sitting position before you make the Salam, then make the Tashahhud again, then make the Salam."
عَنِ النَّبِيِّ ﷺ قَالَ إِذَا كُنْتَ فِي الصَّلَاةِ فَشَكَكْتَ فِي ثَلَاثٍ وَأَرْبَعٍ وَأَكْثَرُ ظَنِّكَ عَلَى أَرْبَعٍ تَشَهَّدْتَ ثُمَّ سَجَدْتَ سَجْدَتَيْنِ وَأَنْتَ جَالِسٌ قَبْلَ أَنْ تُسَلِّمَ ثُمَّ تَشَهَّدْتَ أَيْضًا ثُمَّ سَلَّمْتَ