An-Nisa 4:140
وَقَدْ نَزَّلَ عَلَيْكُمْ فِى ٱلْكِتَـٰبِ أَنْ إِذَا سَمِعْتُمْ ءَايَـٰتِ ٱللَّهِ يُكْفَرُ بِهَا وَيُسْتَهْزَأُ بِهَا فَلَا تَقْعُدُوا۟ مَعَهُمْ حَتَّىٰ يَخُوضُوا۟ فِى حَدِيثٍ غَيْرِهِۦٓ ۚ إِنَّكُمْ إِذًا مِّثْلُهُمْ ۗ إِنَّ ٱللَّهَ جَامِعُ ٱلْمُنَـٰفِقِينَ وَٱلْكَـٰفِرِينَ فِى جَهَنَّمَ جَمِيعًا
Waqad nazzala AAalaykum fee alkitabian itha samiAAtum ayati Allahiyukfaru biha wayustahzao biha fala taqAAudoomaAAahum hatta yakhoodoo fee hadeethinghayrihi innakum ithan mithluhum inna Allaha jamiAAualmunafiqeena walkafireena fee jahannamajameeAAa
And it has already come down to you in the Book [i.e., the Qur’ān] that when you hear the verses of Allāh [recited], they are denied [by them] and ridiculed; so do not sit with them until they enter into another conversation. Indeed, you would then be like them. Indeed, Allāh will gather the hypocrites and disbelievers in Hell all together -
and He has revealed to you in the Book that when you hear the verses of Allah being disbelieved and ridiculed, you should not sit with them unless they enter into some other discourse. You, in that case, would be like them. Surely, Allah is to gather all hypocrites and disbelievers in Jahannam .