Shabir Rabbani, 59, was earlier found guilty of slapping 16-year-old Adeel Ahmed and hitting another 13-year-old boy at a mosque in Pollokshields, Glasgow.
Rabbani denied the claims, but was convicted at the city's sheriff court last month.
Sheriff Martin Jones QC yesterday imposed an order which will ensure Rabbani is supervised.
Rabbani, of Pollokshields, had been convicted of assaulting Mr Ahmed a number of times between January 2007 and February 2010.
Asked if could he recall an incident of being hit, Mr Admed told the jury: "Once or twice I would misbehave during prayer and I would be hit."
The teenager added he was struck "several times".
The younger victim was once hit on the neck causing him to bleed before being told he should not tell anyone.
Rabbani was found guilty of assaulting the 13-year-old between January 2009 and December 2010.
Rabbani said in evidence that he had never hit a child, claiming that to discipline students they were separated from their friends and given extra work.
He originally faced 11 charges of assault while his wife, Riffat Rabbani, 51, faced 14 allegations.
During the trial, all the charges against Mrs Rabbani were dropped as were nine against her husband.
After the verdict last month, Rabbani's QC, Edward Targowski, told the court: "He will lose his livelihood as a teacher."
Rabbani came to the UK from Pakistan and moved to Glasgow around 1986.
During the trial, he said children volunteer to come to the mosque, where they are taught how to become "good citizens".