[Machine] On the authority of the Prophet, ﷺ , he said, "If anyone of you has doubt in his prayer, he should dispel the doubt and act upon certainty. Then, if he becomes certain, he should perform two prostrations while sitting."
عَنِ النَّبِيِّ ﷺ قَالَ «إِذَا شَكَّ أَحَدُكُمْ فِي صَلَاتِهِ فَلْيُلْغِ الشَّكَّ وَلْيَبْنِ عَلَى الْيَقِينِ فَإِذَا اسْتَيْقَنَ بِالتَّمَامِ فَلْيَسْجُدْ سَجْدَتَيْنِ وَهُوَ قَاعِدٌ»