Sunan an-Nasa'i, Book 13, Hadith 67 (Nasa'i 1247)

It was narrated that 'Abdullah said:

"Whoever us not sure about his prayer, then let him estimate what is correct, then let him prostrate twice after he finished his prayer, while he is sitting."