Tafsir of Surah Al-An'aam 6:88
﴿ذَٰلِكَ هُدَى اللَّهِ يَهْدِي بِهِ مَن يَشَاءُ مِنْ عِبَادِهِ وَلَوْ أَشْرَكُوا لَحَبِطَ عَنْهُم مَّا كَانُوا يَعْمَلُونَ﴾
Translation of the meaning
That is the guidance of Allāh by which He guides whomever He wills of His servants. But if they had associated others with Allāh, then worthless for them would be whatever they were doing.
English Translation - Noor International Center — v1.1.2 · QuranEnc.comThe words of the two imams are given in their original Arabic, verbatim, with references.
Shaykh al-Islam Ibn Taymiyyah
وأيضًا فعمل المشرك كله حابط فلا يكون له عمل صالح«تفسير آيات أشكلت على كثير من العلماء» 1/274والأنبياء معصومون من الشرك والكفر، ولكن المقصود بيان أن الشرك لو صدر من أفضل الخلق لأحبط عمله، فكيف بغيره؟«الاستغاثة في الرد على البكري» 1/233