"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." (Using translation from Nasāʾī 1245)
عَبْدُ اللهِ «مَنْ أَوْهَمَ فِي صَلَاتِهِ فَلْيَتَحَرَّ الصَّوَابَ ثُمَّ لْيَسْجُدْ سَجْدَتَيْنِ بَعْدَمَا يَفْرُغُ وَهُوَ جَالِسٌ»