The Messenger of Allah ﷺ said, "Your houses have inhabitants from the jinn, so warn them three times to leave. If anything still appears to you after that, then kill them."
حدثنا هناد حدثنا عبدة عن عبيد الله بن عمر عن صيفي
قال رسول الله ﷺ إن لبيوتكم عمارا فحرجوا عليهن ثلاثا فإن بدا لكم بعد ذلك منهن شيء فاقتلوهن
No references are available.
Sourced from Ahmad: 3/27 from the hadith of Ubaydullah bin Umar, with the same wording.The hadith of Malik in Muwatta: 2/976, 977, and by his route Muslim narrated it, h: 2236, at greater length.