The Prophet ﷺ said: Anyone who is in doubt in his prayer should make two prostrations after giving the salutation. (Using translation from Abū Dāʾūd 1033)
أَنَّ النَّبِيَّ ﷺ قَالَ «مَنْ شَكَّ فِي صَلَاتِهِ فَلْيَسْجُدْ سَجْدَتَيْنِ بَعْدَمَا يُسَلِّمُ»