Surah Al-Anfaal

8:23

وَلَوْ عَلِمَ ٱللَّهُ فِيهِمْ خَيْرًۭا لَّأَسْمَعَهُمْ ۖ وَلَوْ أَسْمَعَهُمْ لَتَوَلَّوا۟ وَّهُم مُّعْرِضُونَ

Had Allah known any good in them, He would have made them hear. And if He had made them hear, they would [still] have turned away, while they were refusing.

Tafsir 8:23

If Allah knew that there was good in these idolaters who reject the truth, He would have made them listen in a way that was beneficial to them, so that they would understand the proof and evidence; but He knows that there is no good in them, and that if He made them hear, they would still turn away stubbornly, rejecting what they heard.