Hadith on Idolatry: Allah does not accept deeds shared with idols

Abu Sa’d reported: The Messenger of Allah, peace and blessings be upon him, said, “When Allah gathers the people on the Day of Resurrection, a day of which there is no doubt, an announcement will be made: To those who shared with anyone in deeds to be done for Allah, let him seek his reward from those besides Allah. Verily, Allah is free of any partners.”

Source: Sunan al-Tirmidhī 3154

Grade: Hasan (fair) according to Al-Albani

عَنْ أَبِي سَعْدِ بْنِ أَبِي فَضَالَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا جَمَعَ اللَّهُ النَّاسَ يَوْمَ الْقِيَامَةِ لِيَوْمٍ لَا رَيْبَ فِيهِ نَادَى مُنَادٍ مَنْ كَانَ أَشْرَكَ فِي عَمَلٍ عَمِلَهُ لِلَّهِ أَحَدًا فَلْيَطْلُبْ ثَوَابَهُ مِنْ عِنْدِ غَيْرِ اللَّهِ فَإِنَّ اللَّهَ أَغْنَى الشُّرَكَاءِ عَنْ الشِّرْكِ

3154 سنن الترمذي كتاب تفسير القرآن باب ومن سورة الكهف

3154 المحدث الألباني خلاصة حكم المحدث حسن في صحيح الترمذي