Narrated Abdullah ibn Ja'far:
The Prophet (ﷺ) said: Anyone who is in doubt in his prayer should make two prostrations after giving the salutation.