The Polythiests Shall be Questioned About the Shirk They Committed
About the polytheists, Allah said:
وَيَوْمَ نَحْشُرُهُمْ جَمِيعاً
(And on the Day when We shall gather them all together,) This is on the Day of Resurrection, when He will ask them about the idols and rivals that they worshipped instead of Him. Allah will say to them,
The verse: وَهُمْ يَنْهَوْنَ عَنْهُ (And from it they prevent - 26), according to early commentators Dahhak, Qatadah and Muhammad ibn Hanafiyah, was revealed about the common disbelievers of Makkah who prevented people from listening to the Qur'an and following it - and saw to it that they themselves stayed away from it. It has also been reported from Sayyidna ` Abdullah ibn ` Abbas ؓ that this verse concerns the Holy Prophet's ﷺ respected uncle, Abu Talib , as well as other uncles who stopped people from causing pain to him, even supported him, but would not believe in the Qur'an nor follow it. If so, the pronoun in يَنْهَوْنَ عَنْهُ will revert to the Holy Prophet ﷺ and not to the Qur'an. (Mazhari with narration by Ibn Abi a1-Hatim from Said ibn Abi Hilal)
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 26–27
In the present world of trial, man has every opportunity to find pretexts or justifications for anything that suits his interests. There are some who appear to listen to God’s message, but if from the outset they are prejudiced, the truth falls on deaf ears and so fails to touch their hearts. They set up mental barriers and, because of this, have no idea of their religious duties, even after they have been carefully explained to them. Arguments, no matter how clearly stated, fail to convince them because, whenever they allow anything of religious significance to cross these barriers, it is with the intention of disputing it, rather than receiving guidance from it. They have no intention of hearing or understanding anything of moral import. As a result, the relevant aspects of any such issue do not come within their mental grasp. Moreover, they are ever ready to present religious matters in a contorted manner. Correct arguments have no influence upon them. Due to their perverseness, they seek out in all ethical questions certain facts which they can misrepresent in order to delude themselves and others that they are on the right path.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.