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.
tabarani:16541Abū Yazīd al-Qarāṭīsī

[Machine] I went out with my father for a need from the city, we wanted to go to Makkah. This was the first time the Prophet ﷺ mentioned Makkah. He came with us to a shepherd's companion, and when the night was halfway through, the wolf came and took a lamb from his flock. The shepherd shouted, "O 'Aamir Al-Wadi, your neighbor!" He replied, "We heard a voice but we don't see its owner. O Sarhan, send him away!" So the lamb had a severe injury until it entered among the sheep. And the verse {And verily, there were men among mankind who took shelter with the masculine among the jinn} was revealed to the Prophet ﷺ while he was in Madinah.  

الطبراني:١٦٥٤١حَدَّثَنَا أَبُو يَزِيدٍ الْقَرَاطِيسِيُ ثنا أَحْمَدُ بْنُ شَكِيبٍ الْكُوفِيُّ ثنا الْقَاسِمُ بْنُ مَالِكٍ الْمُزَنِيُّ عَنْ عَبْدِ الرَّحْمَنِ بْنِ إِسْحَاقَ عَنْ كَرْدَمِ بْنِ أَبِي السَّائِبِ قَالَ

خَرَجْتُ مَعَ أَبِي لِحَاجَةٍ مِنَ الْمَدِينَةِ نُرِيدُ مَكَّةَ وَذَلِكَ أَوَّلَ مَا ذُكِرَ النَّبِيُّ ﷺ بِمَكَّةَ فَأَتَى بِنَا إِلَى صَاحِبِ غَنَمٍ فَلَمَّا انْتَصَفَ اللَّيْلُ جَاءَ الذِّئْبُ فَأَخَذَ حَمَلًا مِنْ غَنَمِهِ فَوَثَبَ الرَّاعِي فَقَالَ يَا عَامِرُ الْوَادِي جَارُكَ قَالَ فَسَمِعْنَا صَوْتًا لَا نَرَى صَاحِبَهُ يَا سَرْحَانُ أَرْسِلْهُ قَالَ فَجَاءَ الْحَمَلُ يَشْتَدُّ مَا بِهِ كَدْمَةٌ حَتَّى دَخَلَ فِي الْغَنَمِ قَالَ وَأُنْزِلَ عَلَى النَّبِيِّ ﷺ وَهُوَ بِالْمَدِينَةِ {وَأَنَّهُ كَانَ رِجَالٌ مِنَ الْإِنْسِ يَعُوذُونَ بِرِجَالٍ مِنَ الْجِنِّ} الْآيَةُ