LONDON (AP) — A British judge on Monday sentenced a woman he called a “devoted and loving mother” to at least 17 years in prison for beating her son to death after he failed to memorize passages from the Quran.

A jury at Cardiff Crown Court in Wales convicted 33-year-old Sara Ege last month of murdering 7-year-old Yaseen and burning his body to destroy the evidence.

Judge Wyn Williams said Ege beat Yaseen repeatedly with a stick over several months, causing internal injuries.

He said that, on the day he died in 2010, Yaseen had been kept home from school to memorize verses from the Muslim holy book, and that his failure “was the trigger for the beating” that killed him.