Surah Yunus

10:100

وَمَا كَانَ لِنَفْسٍ أَن تُؤْمِنَ إِلَّا بِإِذْنِ ٱللَّهِ ۚ وَيَجْعَلُ ٱلرِّجْسَ عَلَى ٱلَّذِينَ لَا يَعْقِلُونَ

And it is not for a soul to believe except by permission of Allah, and He will place defilement upon those who will not use reason.

Tafsir 10:100

It is not possible for any soul to believe by itself unless Allah permits. Belief only happens with His will, so do not lose yourself in grief over them. Allah places suffering and disgrace on those who do not apply their minds to His proof, instructions and prohibitions.