Sunan Abi Dawud, Hadith 5236

Narrated AbuSa'id al-Khudri: Muhammad ibn AbuYahya said that his father told that he and his companion went to AbuSa'id al-Khudri to pay a sick visit to him. He said: Then we came out from him and met a companion of ours who wanted to go to him. We went ahead and sat in the mosque. He then came back and told us that he heard AbuSa'id al-Khudri say: The Messenger of Allah said: Some snakes are jinn; so when anyone sees one of them in his house, he should give it a warning three times. If it return (after that), he should kill it, for it is a devil.

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

sunnah.com

also referenced under: Hadith 5256 (DarusSalam)