When he was there, the youth came and asked his permission, saying, "Messenger of Allah. Give me permission to return to my family." The Messenger of Allah (ﷺ) gave him permission and said, "Take your weapons with you, for I fear the Banu Quraydha tribe. They may harm you." The youth went to his family and found his wife standing between the two doors. He lifted his spear to stab her as jealousy had been aroused in him. She said, "Don't be hasty until you go in and see what is in your house." He entered and found a snake coiled up on his bed. He transfixed it with his spear and then went out with it and pitched it into the house. The snake stirred on the end of the spear and the youth fell dead. No one knew which of them died first, the snake or the youth. That was mentioned to the Messenger of Allah (ﷺ) and he said, "There are jinn in Madina who have become muslim. When you see one of them, call out to it for three days. If it appears after that, then kill it, for it is a shaytan." "'
Arabic : Book 54, Hadith 1798