According to Islamic principles, when a man is accused of heresy, he is given the choice between repentance and punishment.