The Prophet (ﷺ) said: Anyone who is in doubt in his prayer should make two prostrations after giving the salutation.
Sunan Abi Dawud Book 2, Hadith 644