Ali 'Imran 3:86
كَيْفَ يَهْدِى ٱللَّهُ قَوْمًا كَفَرُوا۟ بَعْدَ إِيمَـٰنِهِمْ وَشَهِدُوٓا۟ أَنَّ ٱلرَّسُولَ حَقٌّ وَجَآءَهُمُ ٱلْبَيِّنَـٰتُ ۚ وَٱللَّهُ لَا يَهْدِى ٱلْقَوْمَ ٱلظَّـٰلِمِينَ
Kayfa yahdee Allahu qawman kafaroobaAAda eemanihim washahidoo anna arrasoola haqqunwajaahumu albayyinatu wallahu layahdee alqawma aththalimeen
How shall Allāh guide a people who disbelieved after their belief and had witnessed that the Messenger is true and clear signs had come to them? And Allāh does not guide the wrongdoing people.
How shall Allah give guidance to a people who disbelieved after they had accepted Faith and testified that the Prophet is true and the clear signs had come to them? Allah does not give guidance to the unjust people.