Surah Al-Anfal (الأنفال) · verse 23 (Medinan · Juz 9 · page 179)
وَلَوْ عَلِمَ ٱللَّهُ فِيهِمْ خَيْرًا لَّأَسْمَعَهُمْ وَلَوْ أَسْمَعَهُمْ لَتَوَلَّوا۟ وَّهُم مُّعْرِضُونَ ﴿23﴾
التفسير الميسر
ولو علم الله في هؤلاء خيرًا لأسمعهم مواعظ القرآن وعبره حتى يعقلوا عن الله عز وجل حججه وبراهينه، ولكنه علم أنه لا خير فيهم وأنهم لا يؤمنون، ولو أسمعهم -على الفرض والتقدير- لتولَّوا عن الإيمان قصدًا وعنادًا بعد فهمهم له، وهم معرضون عنه، لا التفات لهم إلى الحق بوجه من الوجوه
Sahih International
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
Marmaduke Pickthall
Had Allah known of any good in them He would have made them hear, but had He made them hear they would have turned away, averse
Abdullah Yusuf Ali
If Allah had found in them any good. He would indeed have made them listen: (As it is), if He had made them listen, they would but have turned back and declined (Faith)