A Canadian man convicted of terrorism for nearly killing a Michigan police officer while yelling "God is great" in Arabic was sentenced to life in prison on Thursday, after boldly declaring that he only regretted not having a machine gun during the knife attack.

Amor Ftouhi's statements stunned U.S. District Judge Matthew Leitman, who said he'd been "wrestling very hard" with a decision about whether to allow the Tunisia native a chance to someday be released from prison.

Leitman said the remarks "persuaded me beyond any shadow of a doubt" that a life term was appropriate for the 51-year-old Ftouhi, who moved to Montreal in 2007.

"He was crystal clear today: If he had the opportunity to kill more people, he would," the judge said.

Ftouhi drove 1,000 miles from Montreal to the airport in Flint, Michigan, where he repeatedly stabbed Lt. Jeff Neville in the neck in June 2017.

In this undated photo released by the FBI, Amor Ftouhi is shown. Ftouhi, a Canadian man, shouted in Arabic before stabbing a police officer in the neck at the Bishop International Airport in Flint, Mich., on Wednesday. The FBI says Ftouhi, 49, tried unsuccessfully to buy a gun while in the United States for five days. (AP Photo/Paul Sancya)

Amor Ftouhi. (AP Photo/Paul Sancya)

Investigators said Ftouhi wanted to take Neville's gun and start shooting people at Bishop Airport. Ftouhi legally entered the U.S. at Champlain, N.Y., and arrived in Flint five days later. He tried but failed to buy a gun at a gun show and instead bought a large knife.

"Do I regret what I did? Never," Ftouhi told the judge inside a federal courtroom in Flint. "I regret I didn't get that machine gun. I regret I didn't kill that cop."

Ftouhi said he had a good education and many skills but felt discrimination in Canada because he wasn't a white Christian. He pledged allegiance to his Muslim faith and said western countries and Arabic countries should be cursed if they "don't rule according to Allah."

He was convicted in November of terrorism and two other crimes.

Neville survived the attack but has lost feeling on the right side of his face. He retired from the airport police department because of post-traumatic stress disorder.

Police officers gather at a terminal at Bishop International Airport, Wednesday morning, June 21, 2017, in Flint, Mich. Officials evacuated the airport Wednesday, where a witness said he saw an officer bleeding from his neck and a knife nearby on the ground.  On Twitter, Michigan State Police say the officer is in critical condition and the FBI was leading the investigation. (Dominic Adams/The Flint Journal-MLive.com via AP)

Police officers gather at Bishop International Airport following the June 21, 2017 attack. (Dominic Adams/The Flint Journal-MLive.com via AP)

"He picked the wrong Americans to attack that day," Neville told Leitman, referring to fellow officers and witnesses who saved him and pounced on Ftouhi. "He should never walk the streets as a free man again."

Ftouhi's attorney, Joan Morgan, argued for a 25-year prison sentence in solitary confinement, saying it would effectively be a life term because of Ftouhi's age. The judge praised Morgan's work but repeatedly challenged her over the recommendation, especially after Ftouhi's courtroom remarks.

CLICK HERE TO GET THE FOX NEWS APP

Morgan said Ftouhi's mental health had deteriorated at the time of the attack and has slipped even further during 22 months in custody awaiting trial and sentencing.

"People change. ... He is more than what his actions were," Morgan said.