"And whoever takes Satan as a companion" [meaning: a friend], "then he is an evil companion." That is, a wretched companion.
Muhammad said: "Evil as a companion" is in the accusative case (mansub) as a specification (tamyiz).
﴿وَمَنْ يَكُنِ الشَّيْطَانُ لَهُ قَرِينًا﴾ [صاحبا] ﴿فسَاء قرينا﴾ فبئس القرين.
قَالَ مُحَمَّد: ﴿سَاءَ قرينا﴾ مَنْصُوب على التَّفْسِير.