وَلَوْ شَاء اللَّهُ لَجَعَلَهُمْ أُمَّةً وَاحِدَةً وَلَكِن يُدْخِلُ مَن يَشَاء فِي رَحْمَتِهِ وَالظَّالِمُونَ مَا لَهُم مِّن وَلِيٍّ وَلَا نَصِيرٍ
[You do not have any responsibility beyond this.] Had God wanted, He would have made all of them as one community [but He has given people the freedom to exercise their will; so, now] He admits into His mercy whomsoever He wishes [according to His law [12]] and as for those who are unjust to their souls, they will neither have any guardian nor any helper. (Quran 42:8)
(Excerpt from Quranic Exegesis: Javed Ahmed Ghamidi)
(Translation by Dr. Shehzad Saleem)
__
[12]. Ie., according to His law that only those are worthy of His mercy who are not unjust to their souls by adhering to polytheism and disobedience; on the contrary, they are ones who benefit from the qualities God has blessed them with and give due importance to His guidance. This law has been mentioned in the Qur’an at a number of places. At each instance, it has been stated that none can change the will and intention of God. However, His will and intention is not something blind and unbridled; it is governed by His justice and wisdom.
__
Further Details on Law of Guidance and Error:
Discussion 22255