Surah Al-A'raaf

7:93

فَتَوَلَّىٰ عَنْهُمْ وَقَالَ يَٰقَوْمِ لَقَدْ أَبْلَغْتُكُمْ رِسَٰلَٰتِ رَبِّى وَنَصَحْتُ لَكُمْ ۖ فَكَيْفَ ءَاسَىٰ عَلَىٰ قَوْمٍۢ كَٰفِرِينَ

And he turned away from them and said, "O my people, I had certainly conveyed to you the messages of my Lord and advised you, so how could I grieve for a disbelieving people?"

Tafsir 7:93

Then their prophet Shu‘ayb (peace be upon him) turned from them when they were destroyed saying: 'O people! Indeed I had delivered what my Lord had instructed me to deliver to you, and I had given you good advice; but you had not taken my advice, nor followed my guidance, so how then can I grieve for a people who disbelieved in Allah and insisted on disbelief?'