He made the comments on 17 August after appearing at a criminal court in Queens the day before, where he was formally charged with the crime.

The charges against him were upgraded from second-degree murder to first-degree murder.

New York Police Department has not yet commented on a possible motives for the shooting, but people in the Ozone Park community in Queens believe the attack was a hate crime.

Uddin's nephew Tamim Uddin told the Washington Post: "The guy came from nowhere and started shooting at them. It was a hate crime. They don't like Muslims – that's it."

Although there has been no official comment on whether the attack is being classed as a hate crime, it has not been ruled out and the city's mayor Bill de Blasio said there was a lot of fear in the Muslim community.

"I assured the members of the Bangladeshi and the Muslim community all over this city that the killer will be brought to justice," he said.

"It is clear there is a lot of fear in the community, it is a very rare thing to see a cleric killed," he added. "And members of the Muslim community have been on edge because of the atmosphere already that existed in this country, particularly over the last few months in our national debate."