Mu’awiyyah ibn Haydah reported: The Messenger of Allah, peace and blessings be upon him, said, “Allah does not accept any deed from an idolater who commits idolatry after accepting Islam, until he departs from the idolaters to join the Muslims.”
Source: Sunan Ibn Mājah 2536
Grade: Hasan (fair) according to Al-Albani
عَنْ مُعَاوِيَة بْنِ حَيْدَة قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ لَا يَقْبَلُ اللَّهُ مِنْ مُشْرِكٍ أَشْرَكَ بَعْدَ مَا أَسْلَمَ عَمَلًا حَتَّى يُفَارِقَ الْمُشْرِكِينَ إِلَى الْمُسْلِمِينَ
2536 سنن ابن ماجه كتاب الحدود باب المرتد عن دينه
7748 المحدث الألباني خلاصة حكم المحدث حسن في صحيح الجامع