Surah Al-Anfal, ayah 38

8:38

قُل لِّلَّذِينَ كَفَرُوٓاْ إِن يَنتَهُواْ يُغۡفَرۡ لَهُم مَّا قَدۡ سَلَفَ وَإِن يَعُودُواْ فَقَدۡ مَضَتۡ سُنَّتُ ٱلۡأَوَّلِينَ ٣٨

Qul lilladhīna kafarū in yantahū yughfar lahum mā qad salafa wa in ya'ūdū faqad madat sunnatul-awwalīn

Say to those who have disbelieved [that] if they cease, what has previously occurred will be forgiven for them. But if they return [to hostility] - then the precedent of the former [rebellious] peoples has already taken place.445

Footnotes

445 This is a warning that punishment is always the result of rebellion against Allāh and His messengers.