My line was from terminator. But pick your poison. Terminator, I Robot, the Matrix. No shortage of movies out there with the theme of AI becoming dominant over humans.
It's a valid fear. Personally, though, the more immediate nightmare isn't AI which is able to control humans, it's robotic technology which is capable of complex tasks and controlled by humans.
You already have robotics which are used in a military fashion. Though still with a pilot, even if remotely. It's not very far off where there needs to be no pilot. You give it a mission and it goes and does it. And not long after that where such machines aren't only controlled by militaries and such, but we all have them available. Psychologically, most humans must be pushed pretty far to say, commit murder. The psychological bar is set far lower to instruct someone else to do so. And if that someone is really a some thing, it has no psychological barrier. It will do it. And could do it on a mass scale based on the instructions of one crazy human.