Surah Nisa 4:140

Certainly He [Allah] has sent down to you in the Book [The Quran] that when you hear Allah’s signs being disbelieved and derided do not sit with them until they enter into some other discourse, otherwise you will be like them. Surah Nisa 4:140