أَخْبَرَنَا سُوَيْدُ بْنُ نَصْرٍ، قَالَ أَنْبَأَنَا عَبْدُ اللَّهِ، عَنْ مِسْعَرٍ، عَنِ الْحَكَمِ، عَنْ أَبِي وَائِلٍ، عَنْ عَبْدِ اللَّهِ، قَالَ مَنْ شَكَّ أَوْ أَوْهَمَ فَلْيَتَحَرَّ الصَّوَابَ ثُمَّ لْيَسْجُدْ سَجْدَتَيْنِ ‏.‏

It was narrated that 'Abdullah said: "Whoever has doubt, or is not sure, let him estimate what is correct, then let him prostrate twice." Translation Not Available

Book Ref: Sunan An Nisai Book 13 Hadith 1246
Web Ref:  Sunan An Nisai Vol 2 Book 13 Hadith 1247