إِنَّا هَدَيْنَٰهُ ٱلسَّبِيلَ إِمَّا شَاكِرًۭا وَإِمَّا كَفُورًا ﴿٣﴾
Lo! We have shown him the way, whether he be grateful or disbelieving.
Muslims believe Allah's knowing does not force anyone, that He wrongs no one even by an ant's weight, that He has written mercy upon Himself, and that He gives every person reason, conscience and guidance. Hell is for those who reject the truth and do wrong after it is clear. Islam admits that this is a serious question and asks for trust in Allah's justice and mercy.
The Quran says: 'We showed him the way, whether he be grateful or ungrateful,' that Allah inspired the soul with its right and wrong, and that He does not wrong anyone by even the weight of an ant. It adds that if there is a good deed, He will double it. In another place, it says: 'What would Allah do with your punishment if you are thankful and believe?' Allah takes no pleasure in punishing; He has prescribed mercy upon Himself. The Prophet ﷺ said that when Allah completed creation, He wrote in a book with Him above the Throne that His mercy precedes His anger.
The possibility of Hell comes with the possibility of real choice. A world in which no one could reject Allah or do wrong would be a world without moral responsibility or love that is freely given. The Quran says that humans took up the trust that the heavens and the earth declined. Allah also judges people according to what they knew, a child is not accountable, and the Prophet ﷺ said that no one will enter Paradise by their deeds alone, not even himself, unless Allah covers him with His mercy. The Quran says the bad deed is counted as one and the good multiplied. The scales are tilted towards mercy.
Honestly, there is a mystery here. Muslims do not claim to see why Allah's wisdom required exactly this world, and they do not claim to know who will be in Hell. The Quran says that Allah's mercy embraces all things, and the Prophet ﷺ said that Allah is more merciful to His servants than a mother to her child. The Quran's warnings about Hell are given because Allah wants people to be saved from it. For Muslims the central point is: the Judge is the Most Merciful, and He knows what each of us is able to bear and to choose.
إِنَّا هَدَيْنَٰهُ ٱلسَّبِيلَ إِمَّا شَاكِرًۭا وَإِمَّا كَفُورًا ﴿٣﴾
Lo! We have shown him the way, whether he be grateful or disbelieving.
إِنَّ ٱللَّهَ لَا يَظْلِمُ مِثْقَالَ ذَرَّةٍۢ ۖ وَإِن تَكُ حَسَنَةًۭ يُضَٰعِفْهَا وَيُؤْتِ مِن لَّدُنْهُ أَجْرًا عَظِيمًۭا ﴿٤٠﴾
Lo! Allah wrongeth not even of the weight of an ant; and if there is a good deed, He will double it and will give (the doer) from His presence an immense reward.
مَّا يَفْعَلُ ٱللَّهُ بِعَذَابِكُمْ إِن شَكَرْتُمْ وَءَامَنتُمْ ۚ وَكَانَ ٱللَّهُ شَاكِرًا عَلِيمًۭا ﴿١٤٧﴾
What concern hath Allah for your punishment if ye are thankful (for His mercies) and believe (in Him)? Allah was ever Responsive, Aware.
قُل لِّمَن مَّا فِى ٱلسَّمَٰوَٰتِ وَٱلْأَرْضِ ۖ قُل لِّلَّهِ ۚ كَتَبَ عَلَىٰ نَفْسِهِ ٱلرَّحْمَةَ ۚ لَيَجْمَعَنَّكُمْ إِلَىٰ يَوْمِ ٱلْقِيَٰمَةِ لَا رَيْبَ فِيهِ ۚ ٱلَّذِينَ خَسِرُوٓا۟ أَنفُسَهُمْ فَهُمْ لَا يُؤْمِنُونَ ﴿١٢﴾
Say: Unto whom belongeth whatsoever is in the heavens and the earth? Say: Unto Allah. He hath prescribed for Himself mercy, that He may bring you all together to the Day of Resurrection whereof there is no doubt. Those who ruin their souls will not believe.
مَن جَآءَ بِٱلْحَسَنَةِ فَلَهُۥ عَشْرُ أَمْثَالِهَا ۖ وَمَن جَآءَ بِٱلسَّيِّئَةِ فَلَا يُجْزَىٰٓ إِلَّا مِثْلَهَا وَهُمْ لَا يُظْلَمُونَ ﴿١٦٠﴾
Whoso bringeth a good deed will receive tenfold the like thereof, while whoso bringeth an ill-deed will be awarded but the like thereof; and they will not be wronged.
إِنَّا عَرَضْنَا ٱلْأَمَانَةَ عَلَى ٱلسَّمَٰوَٰتِ وَٱلْأَرْضِ وَٱلْجِبَالِ فَأَبَيْنَ أَن يَحْمِلْنَهَا وَأَشْفَقْنَ مِنْهَا وَحَمَلَهَا ٱلْإِنسَٰنُ ۖ إِنَّهُۥ كَانَ ظَلُومًۭا جَهُولًۭا ﴿٧٢﴾
Lo! We offered the trust unto the heavens and the earth and the hills, but they shrank from bearing it and were afraid of it. And man assumed it. Lo! he hath proved a tyrant and a fool.