The 23-year-old Said A. knifed the 42-year-old Rabbi Zalman Gurevitch in the stomach after shouting, "I'm going to stab you, you damn Jew," according to witnesses.
Prosecutors had originally intended to charge the man with attempted manslaughter but pursued charges of grievous bodily harm instead, due to lack of evidence. They had asked the court for four years.
The Afghan man admitted the deed before the trial, and his defence team pled for three years in jail.
Gurevitch's lawyer contended throughout the trial that there was enough proof for a case of attempted manslaughter. But an uninvolved witness told the court during the trial that the attack had been preceded by a scuffle started by the rabbi.