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)."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9151