Sunan Abi Dawud, Book 2, Hadith 644 (Abu Dawud 1034)

Narrated Abdullah ibn Ja'far:

The Prophet (ﷺ) said: Anyone who is in doubt in his prayer should make two prostrations after giving the salutation.