The most common answer here will be:
Evil must be allowed to have free will.
This is simply not true. If we are speaking of an omnipotent God that created the entire universe and any extra dimensional space we can't observe, then couldn't Allah come up with something better? If not, and this was the only way free will could exist, then why have it when having it means horrible things will happen to your people? Babies being raped to death, mass genocide, beheading, starvation etc. Wouldn't a God that cared about his people realize that free will is not worth the mass destruction caused by the human race? Not to mention such atrocities as disease, which is not a necessary component for free will's existence, that also flourishes in this environment here on earth. What is its purpose? The questions asked here are rhetorical, the main question stands.