It was narrated from Bahz bin Hakim, from his father, from his grandfather that the Messenger of Allah (ﷺ) said:
"Allah (SWT) will not accept any good deed from a polytheist who committed polytheism after having become Muslim, until he leaves the polytheists and joins the Muslims." (JA)
English reference (JA): Vol. 3, Book 20, Hadith 2536 (JA)
Arabic reference (JA): Book 20, Hadith 2633 (JA)