In the course of the evolution of religion(s) primitive man had no concept of actual death. They assumed that all spirits entered the afterlife. So considering that some people misbehaved badly in this life Hell's were invented as a punishment for evil doers while blissful rewards were assumed for those who were good in this life.
If Infinite God created a hell place of eternal torture for those who misbehaved in this life then God is not "good". In fact, there isn't even a word that would adequately describe how sick and diabolically evil God would be if he tortured his erring children in a hell place.
There is either life or eternal death for those who chose either. In the case of those who reject God and do not want to continue on, the proceedings are so fair and just as to win the approval of the one on trial. They enter the sleep of death and never awake. No pain, no torture, all transcripts erased. Any Good that the non-survivor did returns to God like a drop of water retuning to the ocean.
Defend the character of Allah and stop accusing him of being such a sadistic monster as to tolerate a hell place!
Sooner or later mankind will abandon the fear motive of worship and begin the positive practice of loving God for what he is and desire to be like him.
No evil person will escape God/Allah and anyone thinking evil people can escape God with respect to their sins are evil themselves and judging in a evil way.