Sayyiduna Jabir (may Allah be pleased with him) reports: The Messenger of Allah (peace and blessings be upon him) said: “Those who deny and reject Allah’s decrees are the Magians of this Ummah. If they fall ill, do not visit them; if you meet them, do not greet them; if they die, do not attend their funerals.”
Related hadith on this topic