"Whoever has doubt, or is not sure, let him estimate what is correct, then let him prostrate twice."
Sunan an-Nasa'i Book 13, Hadith 68