Indeed, your Lord is most knowing of who strays from His way, and He is most knowing of the [rightly] guided.
The Saheeh International Quran Translation
إِنَّ رَبَّكَ هُوَ أَعْلَمُ مَن يَضِلُّ عَن سَبِيلِهِۦ وَهُوَ أَعْلَمُ بِٱلْمُهْتَدِينَIndeed, your Lord is most knowing of who strays from His way, and He is most knowing of the [rightly] guided.