If Allah (swt) has unlimited and infinite love and compassion and He also has full knowledge of the future, then why did He create all the evil people about whom He knows that they will end up in Hell?
In addition to what have been nicely replied, I would like to share a list of texts that discuss about evil in relation with Divine Justice, hoping that they will be interesting read that will bring a lot of reflections and a deeper understanding on this subject inshaAllah.
Divine Justice and the Problem of Evil, by Ghulam Husayn Adeel
https://www.al-islam.org/message-thaqalayn/vol11-n2-2010/divine-justice-...
Divine Justice or The Problem of Evil, by Javad Shayvard
https://www.al-islam.org/divine-justice-or-problem-evil-javad-shayvard
Discursive Theology Volume 1, Lesson 25: Evil and the Justice of God
https://www.al-islam.org/discursive-theology-volume-1-dr-ali-rabbani-gul...
Evils, An Excerpt from Ayatullah Murtadha Mutahhari's Divine Justice
https://www.al-islam.org/articles/evils-excerpt-ayatullah-murtadha-mutah...
Ultimate Questions in Philosophy of Religion, by Shaykh Mansour Leghaei, chapter 17 & 18
https://www.al-islam.org/ultimate-questions-philosophy-religion-shaykh-m...
https://www.al-islam.org/ultimate-questions-philosophy-religion-shaykh-m...

