Now if I were a Muslim, I would believe in predestination, and I would not need to explain any of this, as it is the will of Allah. Which begs the question, why execute heretics when we have no freewill, and all is the will of Allah, seems to me to be an affront to Allah to kill someone who is predestined to do something.
Back in 1999 or 2000 there was a short article in USA Today that the nutcase who had attempted to asassinate the Pope some years earlier had appealed his conviction in the Italian courts on the basis that his actions were the result of pre-destination, something beyond his control.
I never read any followup, so I assume that appeal was rejected with laughs and snickers.