وَقَدْ نَزَّلَ عَلَيْكُمْ فِى ٱلْكِتَـٰبِ أَنْ إِذَا سَمِعْتُمْ ءَايَـٰتِ ٱللَّهِ يُكْفَرُ بِهَا وَيُسْتَهْزَأُ بِهَا فَلَا تَقْعُدُوا۟ مَعَهُمْ حَتَّىٰ يَخُوضُوا۟ فِى حَدِيثٍ غَيْرِهِۦٓ ۚ إِنَّكُمْ إِذًا مِّثْلُهُمْ ۗ إِنَّ ٱللَّهَ جَامِعُ ٱلْمُنَـٰفِقِينَ وَٱلْكَـٰفِرِينَ فِى جَهَنَّمَ جَمِيعًا
waqad nazzala ʿalaykum fī l-kitābi an idhā samiʿ'tum āyāti l-lahi yuk'faru bihā wayus'tahza-u bihā falā taqʿudū maʿahum ḥattā yakhūḍū fī ḥadīthin ghayrihi innakum idhan mith'luhum inna l-laha jāmiʿu l-munāfiqīna wal-kāfirīna fī jahannama jamīʿan
As He has already revealed to you [believers] in the Scripture, if you hear people denying and ridiculing God’s revelation, do not sit with them unless they start to talk of other things, or else you yourselves will become like them: God will gather all the hypocrites and disbelievers together into Hell.
And it has already been revealed to you in the Book (this Qur’ân) that when you hear the Verses of Allâh being denied and mocked at, then sit not with them, until they engage in a talk other than that; (but if you stayed with them) certainly in that case you would be like them. Surely, Allâh will collect the hypocrites and disbelievers all together in Hell.