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.
quran:72:6

And there were men from mankind who sought refuge in men from the jinn, so they ˹only˺ increased them in burden.  

And that certain individuals of mankind used to seek the protection of certain individuals of the jinn, when they stopped over in dangerous places during their journeys — whereat every man would say, ‘I seek the protection of the lord of this place against the evil of the insolent ones in it’ — so that they increased them, by their seeking their protection, in oppressiveness, such that they would say, ‘We are now lords of jinn and humans!’.
القرآن:٧٢:٦

وَأَنَّهُ كَانَ رِجَالٌ مِنَ الْإِنْسِ يَعُوذُونَ بِرِجَالٍ مِنَ الْجِنِّ فَزَادُوهُمْ رَهَقًا  

{وأنه كان رجال من الإنس يعوذون} يستعيذون {برجال من الجن} حين ينزلون في سفرهم بمخوف فيقول كل رجل أعوذ بسيد هذا المكان من شر سفهائه {فزادوهم} بعوذهم بهم {رهقا} فقالوا سدنا الجن والإنس.