Sure Aal-i-Imraan

3:86

كَيْفَ يَهْدِى ٱللَّهُ قَوْمًۭا كَفَرُوا۟ بَعْدَ إِيمَٰنِهِمْ وَشَهِدُوٓا۟ أَنَّ ٱلرَّسُولَ حَقٌّۭ وَجَآءَهُمُ ٱلْبَيِّنَٰتُ ۚ وَٱللَّهُ لَا يَهْدِى ٱلْقَوْمَ ٱلظَّٰلِمِينَ

Wie sollte Allah ein Volk rechtleiten, das (wieder) ungläubig wurde, nachdem es den Glauben (angenommen) hatte und (nachdem) es bezeugt hatte, daß der Gesandte wahrhaft ist, und (nachdem) zu ihm die klaren Beweise gekommen waren! Und Allah leitet nicht das ungerechte Volk recht.

Tafsir 3:86

How shall Allah grant faith in Him and in His messengers to a people who disbelieved after having faith in Allah and witnessing that what the Prophet Muhammad (peace be upon him) brought was the truth, and after clear proofs of the truth of this have come to them? Allah does not grant faith in Him to a people who are wrongdoers and who choose error instead of guidance.