Indeed, your Lord is most knowing of who has gone astray 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 has gone astray from His way, and He is most knowing of the [rightly] guided.