Surah Al-Anfal 8:23
وَلَوْ عَلِمَ ٱللَّهُ فِيهِمْ خَيْرًا لَّأَسْمَعَهُمْ ۖ وَلَوْ أَسْمَعَهُمْ لَتَوَلَّوا۟ وَّهُم مُّعْرِضُونَ
Had Allāh 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.
Translation: Saheeh International
Tafsir
For had God known of any good in them any righteousness were they to listen to the truth He would have made them hear in such a way as to understand; and had He made them hear — hypothetically speaking — already knowing that there is no good in them they would have turned away from it averse to accepting it out of …
Excerpt from Tafsir al-Jalalayn, commentary on 8:23, via Quran.com. The reader has the full commentary and 9 more tafsirs.