Al-An'am - 6:117

إِنَّ رَبَّكَ هُوَ أَعْلَمُ مَن يَضِلُّ عَن سَبِيلِهِ وَهُوَ أَعْلَمُ بِالْمُهْتَدِينَ
[6:117]
Surely your Lord-- He best knows who goes astray from His way, and He best knows those who follow the right course.
Thy Lord knoweth best who strayeth from His way: He knoweth best who they are that receive His guidance.
Lo! thy Lord, He knoweth best who erreth from His way; and He knoweth best (who are) the rightly guided.