[Machine] He saw Mu'awiyah leading the people in prayer, so he stood up twice and the people praised Allah. He gestured to them to stand up, and when he finished his prayer, he performed two prostrations before the salutation, and the people prostrated with him. Then he said, "O people, indeed I heard the Messenger of Allah ﷺ saying, 'Whoever has doubt in his prayer, let him perform two prostrations while he is sitting.'"
أَنَّهُ رَأَى مُعَاوِيَةَ صَلَّى بِالنَّاسِ فَقَامَ فِي الثِّنْتَيْنِ فَسَبَّحَ النَّاسُ فَأَشَارَ إِلَيْهِمْ أَنْ قُومُوا فَلَمَّا فَرَغَ مِنْ صَلَاتِهِ سَجَدَ سَجْدَتَيْنِ قَبْلَ السَّلَامِ وَسَجَدَهُمَا النَّاسُ مَعَهُ ثُمَّ قَالَ يَا أَيُّهَا النَّاسُ إِنِّي سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ «مَنْ دَاخَلَهُ شَكٌّ فِي صَلَاتِهِ فَلْيَسْجُدْ سَجْدَتَيْنِ وَهُوَ جَالِسٌ»