Surah Al-Munafiqun, ayah 3

63:3

ذَٰلِكَ بِأَنَّهُمۡ ءَامَنُواْ ثُمَّ كَفَرُواْ فَطُبِعَ عَلَىٰ قُلُوبِهِمۡ فَهُمۡ لَا يَفۡقَهُونَ ٣

Dhālika bi annahum āmanū thumma kafarū fatubi'a 'alā qulūbihim fahum lā yafqahūn

That is because they believed, and then they disbelieved; so their hearts were sealed over, and they do not understand.