«إن نفرا من الجن أسلموا بالمدينة فإذا رأيتم أحدا منهم فحذروه ثلاث مرات ثم إن بدا لكم بعد أن تقتلوه فاقتلوه بعد الثلاث»
The Prophet (peace and blessings be upon him) said:
"Indeed, a group of the jinn have accepted Islam in Madinah. So when you see one of them (in your homes, in the form of a snake or the like), warn it three times (for three days) to leave. Then if it still appears to you after that, kill it after those three times."
Hadith Referenceصحیح الجامع الصغیر / حرف الألف / 2241