Did the judge read the Qur’an? All of it, and not just the early parts that cover the prophet Muhammad‘s relatively peaceful period in Mecca? Because after Muhammad was kicked out of Mecca and settled in Medina, he repeatedly (if not consistently) claimed that Allah wanted him and his followers to wage war, to kill, to take slaves, to rain violence upon Jews and Christians. And so they did.
As a consequence, the first part of the Qur’an is overall fairly lovey-dovey, whereas the second part is steeped in prescriptive violence.