The Archbishop of Canterbury, Justin Welby (2L), Senior Rabbi Laura Janner-Klausner (C), Imam Shaykh Ibrahim Mogra (2R) and Sayeeda Warsi (R) react together at the close of a vigil outside Westminster Abbey in central London September 3, 2014. Religious l
The Archbishop of Canterbury, Justin Welby (2L), Senior Rabbi Laura Janner-Klausner (C), Imam Shaykh Ibrahim Mogra (2R) and Sayeeda Warsi (R) react together at the close of a vigil outside Westminster Abbey in central London September 3, 2014. Religious leaders attended the vigil to unite against human rights violations in Iraq. REUTERS/Luke MacGregor (BRITAIN - Tags: MILITARY RELIGION) Reuters/Luke MacGregor

The Philippines have rejected the entry of a Canadian Islamic preacher into their shores, claiming the man is a threat to national security.

Arrested on Sunday shortly after his arrival, Abu Ameenah Bilal Philips has agreed to be deported back to Canada. Philips reportedly flew to the southern Philippines for a lecture tour.

Police believed Philips has ties to the country's extremist groups. They claimed they had earlier prevented him from holding a series of lectures in the south.

The Citizen, quoting Eddie Delima, head of the Davao City immigration office, said a deportation order was served against Philips "because of his extremist views and possible terror links."

Born in Jamaica but raised in Toronto, Canada, Philips was initially a Communist while still in university in Vancouver. He converted in 1972 to Islam, then using the name Abu Ameenah Bilal Philips, he went to study in Saudi Arabia and work as a scholar in Qatar and Dubai.

In 1993, the U.S. linked him to the attempted bombing of the World Trade Center. He was never charged, though.

Philips has been barred from at least seven countries, including the United States, Britain, Australia, Kenya and more recently in June in Bangladesh, over his Islamic views.

In 2011, he got expelled from Germany for allegedly advocated killing homosexuals.

He said that under the sharia law, homosexuality is punishable by death, the Globe and Mail reported. Muslims owe allegiance to their religion first, before their country, Philips pointed out.

"My message ... really is for Muslims to be Muslims first, and then nationalist after, whatever their nationality is. So you're a Muslim first and you are a Canadian second. You're a Muslim first and an American second," he told the Globe and Mail.

Muslims in the southern Philippines were angered over the arrest and subsequent deportation of Philips.

Quoted by the Citizen, Drieza al-Moro said what happened to the Canadian imam was an insult. "It is an affront to Islam, and this is one of the worst incidents that ever happened in the Philippines."