He has said something like that a million times so I’m sure the wording has changed in numerous variations. I was quoting him from the recent debate.
I get this from the FOX News Iowa Debate on Thursday December 15, 2011,
10:12 p.m. - "Obviously, I would like to see a lot less nuclear weapons, but to declare war on 1.2 billion Muslims and to say all Muslims are the same is dangerous," Paul said. "That is absurd. They come here and they want to do us harm because we're bombing them. Why were we flying the drone over Iran? Why do we have to have 900 bases in 130 countries? I think this wild goal to have another war in the name of defense is the dangerous thing, the danger is us over-reacting."
I think the comment is directed at Muslims in general, and not Iran specifically.