Sunan an-Nasa'i, Volume 2, Book 13, Hadith 1247 (DarusSalam) ⓘ
It was narrated that 'Abdullah said: "Whoever has doubt, or is not sure, let him estimate what is correct, then let him prostrate twice."
أَخْبَرَنَا سُوَيْدُ بْنُ نَصْرٍ، قَالَ أَنْبَأَنَا عَبْدُ اللَّهِ، عَنْ مِسْعَرٍ، عَنِ الْحَكَمِ، عَنْ أَبِي وَائِلٍ، عَنْ عَبْدِ اللَّهِ، قَالَ مَنْ شَكَّ أَوْ أَوْهَمَ فَلْيَتَحَرَّ الصَّوَابَ ثُمَّ لْيَسْجُدْ سَجْدَتَيْنِ .
also referenced under: Hadith 1246 (Reference) & Book 13, Hadith 68 (In-Book)