[Machine] The Messenger of Allah ﷺ said, "Whoever doubts about his prayer, let him prostrate twice after he has finished the prayer. This narration is acceptable except that the narration of Abu Sa'id Al-Khudri is more authentic, along with the narration of Abdul Rahman ibn Awf and Abu Hurairah, according to what we mentioned. And Allah knows best."
أَنَّ رَسُولَ اللهِ ﷺ قَالَ مَنْ شَكَّ فِي صَلَاتِهِ فَلْيَسْجُدْ سَجْدَتَيْنِ بَعْدَ أَنْ يُسَلِّمَ هَذَا الْإِسْنَادُ لَا بَأْسَ بِهِ إِلَّا أَنَّ حَدِيثَ أَبِي سَعِيدٍ الْخُدْرِيِّ أَصَحُّ إِسْنَادًا مِنْهُ وَمَعَهُ حَدِيثُ عَبْدِ الرَّحْمَنِ بْنِ عَوْفٍ وَأَبِي هُرَيْرَةَ عَلَى مَا نَذْكُرُهُ وَاللهُ أَعْلَمُ