Surah Al-Baqara

2:6

إِنَّ ٱلَّذِينَ كَفَرُوا۟ سَوَآءٌ عَلَيْهِمْ ءَأَنذَرْتَهُمْ أَمْ لَمْ تُنذِرْهُمْ لَا يُؤْمِنُونَ

Indeed, those who disbelieve - it is all the same for them whether you warn them or do not warn them - they will not believe.

Tafsir 2:6

Those who reject what Allah revealed to His Messenger continue on the wrong path in their stubbornness. So, it makes no difference whether you warn them or not.