It is reported that Al-Ḥasan Al-Baṣrī – Allāh have mercy on him – said:

Do not sit with the people of desires (Bidʿah, heresy), even if you think you have a response [to what they say].

Al-Harawī, Dhamm Al-Kalām article 765.