كَيْفَ يَهْدِى ٱللَّهُ قَوْمًا كَفَرُوا۟ بَعْدَ إِيمَٰنِهِمْ وَشَهِدُوٓا۟ أَنَّ ٱلرَّسُولَ حَقٌّ وَجَآءَهُمُ ٱلْبَيِّنَٰتُ ۚ وَٱللَّهُ لَا يَهْدِى ٱلْقَوْمَ ٱلظَّٰلِمِينَ
Commentary:
Certainly a people who at first believe in the truth of a Prophet and proclaim their belief openly and become witnesses of heavenly signs but afterwards reject that Prophet through fear of men or other worldly considerations lose all title to be again guided to the right path. The verse lays down a general principle that God lets a person go astray only when the latter knowingly allows disbelief and wickedness to get hold of him and does not try to improve his ways.
Certainly a people, who at first believe in the truth of a Prophet and proclaim their belief openly in him and become witnesses of Heavenly Signs but afterwards reject him through fear of men or other worldly considerations, lose all title to be again guided to the right path. Or the verse may refer to those who believed in the former Prophets but rejected the Holy Prophet.