For a person not to think that the doors had been closed, Allah (swt) opens the door of repentance. Allah (swt) excludes those who repent from what is mentioned in the previous verse. On the other hand He (swt) states the signs of repentance, that are: Reforming what was corrupted, holding fast to Allah (swt) and sincerity towards Allah (swt), meaning to avoid the hypocrisy in all its aspects.
( وَسَوْفَ يُؤْتِ اللَّهُ الْمُؤْمِنِينَ أَجْرًا عَظِيمًا … ) (…And Allah is going to give the believers a great reward): This reward will not give the disbelievers a way over the believers in this world if they are true believers, and in the hereafter they will have the great reward which is according to the greatness of the giver.