Surah Al-An'aam

6:117

إِنَّ رَبَّكَ هُوَ أَعْلَمُ مَن يَضِلُّ عَن سَبِيلِهِۦ ۖ وَهُوَ أَعْلَمُ بِٱلْمُهْتَدِينَ

Indeed, your Lord is most knowing of who strays from His way, and He is most knowing of the [rightly] guided.

Tafsir 6:117

Your Lord, O Messenger, knows best those people who are misled from His path; and He knows best those who are rightly guided to it. Nothing of that is hidden from Him.