Surah Yunus — Ayah 40 (10:40)
وَمِنۡهُم مَّن يُؤۡمِنُ بِهِۦ وَمِنۡهُم مَّن لَّا يُؤۡمِنُ بِهِۦۚ وَرَبُّكَ أَعۡلَمُ بِٱلۡمُفۡسِدِينَ ٤٠
English translation (Saheeh International)
And of them are those who believe in it, and of them are those who do not believe in it. And your Lord is most knowing of the corrupters.
Brief commentary
There are idolaters who believe in the Qur’ān before their death, and there are those who do not believe in it out of stubbornness and pride until they die. Allah knows best those who persist in their disbelief and ingratitude, and will repay them for their actions.