It is narrated on the authority of Hazrat Abu Saeed Khudri (may Allah be pleased with him) in a marfu’ form that when a person has doubt in his prayer and does not remember whether he has performed more or fewer rak‘ahs, then he should perform two prostrations of forgetfulness while sitting.