حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ الْعَزِيزِ، ثنا أَبُو نُعَيْمٍ، ثنا مِسْعَرٌ، عَنِ الْحَكَمِ، عَنْ أَبِي وَائِلٍ، قَالَ: قَالَ عَبْدُ اللهِ: «مَنْ شَكَّ أَوْ وَهِمَ فِي صَلَاتِهِ فَلْيَتَحَرَّ ثُمَّ يَسْجُدْ سَجْدَتَيْنِ»
Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said: "Whoever is in doubt or uncertain in his prayer, let him estimate what is correct, then perform two prostrations (of forgetfulness)."