It is reported that Ibn Mas’ūd – Allāh be pleased with him – said, “Whoever wants to honor his religion and do good to it should avoid mixing with the ruler or sitting with the followers of desires (heretics, people of bid’ah), for sitting with them is more contagious than scabies.”
Ibn Waddāḥ, Al-Bida’ p136.