A Bosnian immigrant who authorities said came within days of carrying out a plot to bomb New York City's subway system was sentenced to life in prison on Friday.

Adis Medunjanin, 34, had been charged with conspiring to use weapons of mass destruction and conspiring to provide material support to al Qaeda. After authorities foiled the plot, he then attempted to crash his car and kill himself and others.

Medunjanin chanted versus in Arabic from the Quran in front of Judge John Gleeson as a part of his statement to the court. He went on in English also criticized the U.S. for wars, hunger and torture.