A Dutch court has convicted a 22-year-old of terrorism for plotting an armed robbery in The Hague with the intention of sending the proceeds to fund Jihad fighters in Syria.

Judges in Rotterdam said in a written judgment Monday that the man, identified only as Mohamed A., was guilty of preparing for an act of terrorism because he had fought in Syria and knew that sending money there would contribute to more killings in that country's bloody civil war.

The man, a Dutch citizen of Somali descent, was sentenced to four years' imprisonment. He denied having fought in Syria.

Police foiled the robbery thanks to an undercover operation involving taped conversations in a car and informants who reported the suspect's plans to detectives.