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:68:6

Which of you is the afflicted ˹by a devil˺.  

which of you is demented (al-maftūn is a verbal noun, similar ˹in expressional form˺ to al-ma‘qūl, ‘intelligible’; al-futūn meaning al-junūn, ‘insanity’) in other words, is it ˹this insanity˺ in you or in them?
القرآن:٦٨:٦

بِأَيْيِكُمُ الْمَفْتُونُ  

{بأيكم المفتون} مصدر كالمعقول، أي الفتون بمعنى الجنون، أي أبك أم بهم.