At-Tawbah 9:115
وَمَا كَانَ ٱللَّهُ لِيُضِلَّ قَوْمًۢا بَعْدَ إِذْ هَدَىٰهُمْ حَتَّىٰ يُبَيِّنَ لَهُم مَّا يَتَّقُونَ ۚ إِنَّ ٱللَّهَ بِكُلِّ شَىْءٍ عَلِيمٌ
Wama kana Allahu liyudillaqawman baAAda ith hadahum hattayubayyina lahum ma yattaqoona inna Allaha bikullishay-in AAaleem
And Allāh would not let a people stray after He has guided them until He makes clear to them what they should avoid. Indeed, Allāh is Knowing of all things.
Allah is not such as He makes a people go astray after He has given them guidance, unless He explains to them what they should avoid. Indeed, Allah is fully aware of every thing.