Republican presidential candidate Herman Cain has said that he believes that the majority of Muslims in the United States hold extremist views, according to GQ Magazine.

"I know that there are peaceful Muslims, and there are extremists. I have nothing against peaceful Muslims. Nothing whatsoever. But I also know that we must be careful of extremists and we must be careful of the tendency by some groups in this country to infuse their beliefs into our laws and our culture," Cain said while giving an interview to GQ writers.

More from GlobalPost: Top 10 International political scandals

Cain went on to explain that an unnamed "very well known Muslim voice" told him that the majority of Muslims in the United States hold extremist views. When an interviewer asked Cain if he agreed with the unnamed Muslim, Cain said he did.

"Yes, because that's his community. That's his community. I can't tell you his name, but he is a very prominent voice in the Muslim community, and he said that," Cain said.

This is not the first time that Cain has made his controversial opinion of Muslims known publicly.

In March, he said that if he were elected as president of the United States, he would not feel comfortable having a Muslim in his cabinet. He said that a Muslim cabinet member might try to "ease Sharia law" and Islam into the government, The New York Times reported.

And in an interview with Fox News on July 17, Cain said American communities should be allowed to keep out mosques if they wish, Talking Points Memo reported. The comment drew outrage from some in the community, and Cain apologized to Muslims in late July for his remarks.

More from GlobalPost: Sharon Bialek: Herman Cain reached his hand up my skirt