Sayyiduna Ibn Abbas (may Allah be pleased with them both) narrates: "I was discussing a matter of prayer with Sayyiduna Umar (may Allah be pleased with him)." He said: "Then Sayyiduna Abd al-Rahman bin Awf (may Allah be pleased with him) came to us and said: 'Shall I not narrate to you a hadith that I heard from the Messenger of Allah (peace and blessings be upon him)?'" He said: "We said: 'Of course!'" He said: "I bear witness with the testimony of Allah that I certainly heard the Messenger of Allah (peace and blessings be upon him) say: 'When one of you (is in prayer) and doubts that he has fallen short in his prayer, let him pray (more) until he is in doubt of having done extra (instead of less).'"
Related hadith on this topic