حَدَّثَنَا أَحْمَدُ بْنُ عَمْرِو بْنِ السَّرْحِ، وَمُحَمَّدُ بْنُ سَلَمَةَ الْمُرَادِيُّ، قَالاَ حَدَّثَنَا ابْنُ وَهْبٍ، عَنْ مُعَاوِيَةَ بْنِ صَالِحٍ، عَنْ أَبِي مَرْيَمَ، قَالَ سَمِعْتُ أَبَا هُرَيْرَةَ، يَقُولُ سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏"‏إِذَا اسْتَيْقَظَ أَحَدُكُمْ مِنْ نَوْمِهِ فَلاَ يُدْخِلْ يَدَهُ فِي الإِنَاءِ حَتَّى يَغْسِلَهَا ثَلاَثَ مَرَّاتٍ فَإِنَّ أَحَدَكُمْ لاَ يَدْرِي أَيْنَ بَاتَتْ يَدُهُ أَوْ أَيْنَ كَانَتْ تَطُوفُ يَدُهُ ‏"
Translation
Abu Hurairah reported

Ahmad bin Amr bin al-Sarh and Muhammad bin Salamah al-Muradi narrated to us, saying: Ibn Wahb narrated to us, from Mu'awiyah bin Salih, from Abu Maryam, who said: I heard Abu Hurayrah saying: I heard the Messenger of Allah (may Allah bless him and grant him peace) saying: "When any of you wakes up from his sleep, let him not put his hand into the vessel until he washes it three times, for indeed none of you knows where his hand spent the night, or where his hand was moving."