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:16:100

His authority is only over those who take him as an ally and those who through him associate others with Allah.  

His ˹Satan’s˺ power is only over those who choose him as ˹their˺ patron, by obeying him, and those who ascribe partners to Him, that is, to God.
القرآن:١٦:١٠٠

إِنَّمَا سُلْطَانُهُ عَلَى الَّذِينَ يَتَوَلَّوْنَهُ وَالَّذِينَ هُمْ بِهِ مُشْرِكُونَ  

{إنما سلطانه على الذين يتولوْنه} بطاعته {والذين هم به} أي الله {مشركون}.