It is narrated from Sayyiduna Abdullah bin Ja'far (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "If a person has doubt in his prayer, he should perform two prostrations of forgetfulness while sitting."