Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:5258Musaddad > Yaḥyá > Ibn ʿAjlān Bihadhā al-Ḥadīth Mukhtaṣar

He should give it a warning three times. If it appears to him after that, he should kill it, for it is a devil.  

أبو داود:٥٢٥٨حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا يَحْيَى عَنِ ابْنِ عَجْلاَنَ بِهَذَا الْحَدِيثِ مُخْتَصَرًا قَالَ

فَلْيُؤْذِنْهُ ثَلاَثًا فَإِنْ بَدَا لَهُ بَعْدُ فَلْيَقْتُلْهُ فَإِنَّهُ شَيْطَانٌ  


See similar narrations below:

Collected by Muslim, Nasāʾī's Kubrá
muslim:2236cZuhayr b. Ḥarb > Yaḥyá b. Saʿīd > Ibn ʿAjlān

There is a group of jinns in Medina who accepted Islam, so he who would see anything from these occupants should warn him three times; and if he appears after that, he should kill him for he is a satan.  

مسلم:٢٢٣٦cوَحَدَّثَنَا زُهَيْرُ بْنُ حَرْبٍ حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ عَنِ ابْنِ عَجْلاَنَ حَدَّثَنِي صَيْفِيٌّ عَنْ أَبِي السَّائِبِ عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ قَالَ سَمِعْتُهُ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ إِنَّ بِالْمَدِينَةِ نَفَرًا مِنَ الْجِنِّ قَدْ أَسْلَمُوا فَمَنْ رَأَى شَيْئًا مِنْ هَذِهِ الْعَوَامِرِ فَلْيُؤْذِنْهُ ثَلاَثًا فَإِنْ بَدَا لَهُ بَعْدُ فَلْيَقْتُلْهُ فَإِنَّهُ شَيْطَانٌ  

nasai-kubra:10741Yaʿqūb b. Ibrāhīm al-Dawraqī > Yaḥyá > Ibn ʿAjlān

There is a group of jinns in Medina who accepted Islam, so he who would see anything from these occupants should warn him three times; and if he appears after that, he should kill him for he is a satan. (Using translation from Muslim 2236c)  

الكبرى للنسائي:١٠٧٤١أَخْبَرَنَا يَعْقُوبُ بْنُ إِبْرَاهِيمَ الدَّوْرَقِيُّ قَالَ حَدَّثَنَا يَحْيَى عَنِ ابْنِ عَجْلَانَ قَالَ حَدَّثَنِي صَيْفِيٌّ عَنْ أَبِي السَّائِبِ عَنْ أَبِي سَعِيدٍ قَالَ

قَالَ رَسُولُ اللهِ ﷺ «إِنَّ بِالْمَدِينَةِ نَفَرًا مِنَ الْجِنِّ أَسْلَمُوا فَمَنْ رَأَى شَيْئًا مِنْ هَذِهِ الْعَوَامِرِ فَلْيُؤْذِنْهُ ثَلَاثًا فَإِنْ بَدَا لَهُ بَعْدُ فَلْيَقْتُلْهُ فَإِنَّهُ شَيْطَانٌ»