A man whipped a 15-year-old girl with a cable as a punishment, a court has heard.
Bature Bashir attacked the girl at an address in Dundee in response to what he deemed bad behaviour.
The student, who is living in Dundee, pleaded guilty to punching the girl and then striking her with a cable.
Sheriff George Way told Bashir, who is a Muslim, that his actions would not be tolerated under any religion. Sentence was deferred until June 2011.
Defence solicitor David Sinclair said Bashir had moved from Nigeria to Dundee with his family to study.
He said: "He will be returning to Nigeria from 30 December until February, then moving to Aberdeen to complete his studies in June."
Sheriff Way ordered him to be on good behaviour until his sentence.
He said: "I understand the circumstances surrounding this offence.
"However, even at a cursory reading of the Koran it is very clear that we must love children and discipline must be fair. I want you to reflect on that next time there's a problem.
"Be very clear that neither under your religion or mine will any repetition be tolerated of this type of violence towards children."
The sheriff told Bashir that if he returned in six months without having come to the attention of the police then the matter could be dealt with "very simply".