Quran 3:118 And never think that those who rejoice in what they have perpetrated and like to be praised for what they did not do – never think them [to be] in safety from the punishment, and for them is a painful punishment.
3:188 – In order to understand this verse you have to read from chapter 3, verses 116 to 119. Here God states that those who misguide or hide the truth and break the covenant, are told that they will be punished by HIM in the hereafter (Tasfir al-Jalalayn and Tafsir Ibn kathir).
Quran chapter 3, verses 116 to 119 in context:
“Indeed, those who disbelieve – never will their wealth or their children avail them against Allah at all, and those are the companions of the Fire; they will abide therein eternally. – 3:116
The example of what they spend in this worldly life is like that of a wind containing frost which strikes the harvest of a people who have wronged themselves and destroys it. And Allah has not wronged them, but they wrong themselves. – 3:117
O you who have believed, do not take as intimates those other than yourselves, for they will not spare you [any] ruin. They wish you would have hardship. Hatred has already appeared from their mouths, and what their breasts conceal is greater. We have certainly made clear to you the signs, if you will use reason. – 3:118
Here you are loving them but they are not loving you, while you believe in the Scripture – all of it. And when they meet you, they say, “We believe.” But when they are alone, they bite their fingertips at you in rage. Say, “Die in your rage. Indeed, Allah is Knowing of that within the breasts.” – 3:119