5-Surah Al-Maidah ( The Table spread with Food ) 34
Except for those who return [repenting] before you apprehend them. And know that Allah is Forgiving and Merciful.
إِلَّا الَّذِينَ تَابُوا مِن قَبْلِ أَن تَقْدِرُوا عَلَيْهِمْ ۖ فَاعْلَمُوا أَنَّ اللَّهَ غَفُورٌ رَّحِيمٌ
Quran's Tafhim ( explanation)
*57). If they give up subversion and abandon their endeavour to disrupt or overthrow the righteous order, and their subsequent conduct shows that they have indeed become peace-loving, law-abiding citizens of good character, they need not be subjected to the punishments mentioned here even if any of their former crimes against the state should come to light. If their crime involves violation of the rights of other men they may not be absolved from their guilt. If, for instance, they have either killed a person, seized someone's property or committed any other crime against human life or property they will be tried according to the criminal law of Islam. They will not, however, be accused of either rebellion and high treason or of waging war against God and His Messenger.