Surah Al-An'am, ayah 147

6:147

فَإِن كَذَّبُوكَ فَقُل رَّبُّكُمۡ ذُو رَحۡمَةٖ وَٰسِعَةٖ وَلَا يُرَدُّ بَأۡسُهُۥ عَنِ ٱلۡقَوۡمِ ٱلۡمُجۡرِمِينَ ١٤٧

Fa in kaddhabūka faqur rabbukum dhū rahmatin wāsi'atin walā yuraddu ba suhū 'anil-qawmil-mujrimīn

So if they deny you, [O Muḥammad], say, "Your Lord is the possessor of vast mercy; but His punishment cannot be repelled from the people who are criminals."