“If one of you doubts in his prayer and does not know how many he has prayed- whether it is three or four – then let him cast away the doubt and build upon what he is certain of. Then let him perform two prostrations before giving the salutation. So if he has prayed five, then they will make his prayer even for him, and if he has prayed the full four, then they will be a humiliation for Satan.”
Reported by Muslim (Eng. Trans. vol. 1, no. 1166)
Source: Prostration of Forgetfulness in Prayer – by Shaykh Uthaymeen. Translated by Dawood Burbank rahimahullaah