(Verily, you are going to taste the painful torment; and you will be requited nothing except for what you used to do.) Then He makes an exception in the case of His sincerely believing servants. This is like the Ayat:
6. 'The word: غَوْلٌ (ghaul) in verse 47: لَا فِيهَا غَوْلٌ la fiha ghaulun) has been explained variously as 'headache' or 'abdominal pain' or 'smell or corruption' or 'muddling of reason'. The fact is that the word: غَوْلٌ (ghaul) is used to convey all these meanings, while Hafiz Ibn Jarir says that 'ghaul' appears here in the sense of bane, trouble or unwelcome consequences which makes it mean that the drink offered in Jannah will have no such evil consequences as are found in wines consumed in the mortal world - no hangovers of headache, stomach pain, bad breath or loss of reason. (Tafsir Ibn Jarir).
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 39–48
When they were told that there was nobody worth worshipping except God, they behaved haughtily. This does not mean that their haughty behaviour was directed against God. The majesty of God is too lofty to allow any individual to be so presumptuous. Their haughty behaviour, in fact, was aimed at His messenger. The leaders in whose name others indulged in polytheistic acts, were adversely affected by the Prophet’s call for belief in the oneness of God. On the one hand was the Prophet and on the other, the polytheistic leaders. Since the Prophet appeared to be of a lesser stature than the leaders, most people ignored him, considering him a person of little or no account. The force of argument was undoubtedly on the side of the Prophet, but apparent greatness seemed to reside in their leaders and history is replete with examples where the force of reason has proved ineffective in the face of apparent greatness.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.