6:108
وَلَا تَسُبُّوا۟ ٱلَّذِينَ يَدْعُونَ مِن دُونِ ٱللَّهِ فَيَسُبُّوا۟ ٱللَّهَ عَدْوًۢا بِغَيْرِ عِلْمٍۢ ۗ كَذَٰلِكَ زَيَّنَّا لِكُلِّ أُمَّةٍ عَمَلَهُمْ ثُمَّ إِلَىٰ رَبِّهِم مَّرْجِعُهُمْ فَيُنَبِّئُهُم بِمَا كَانُوا۟ يَعْمَلُونَ
And do not insult those they invoke other than Allah, lest they insult Allah in enmity without knowledge. Thus We have made pleasing to every community their deeds. Then to their Lord is their return, and He will inform them about what they used to do.
Translation · Saheeh International
Tafsir
Ibn Kathīr (abridged)
The Prohibition of Insulting the False gods of the Disbelievers, So that they Do not Insult Allah
Allah prohibits His Messenger and the believers from insulting the false deities of the idolators, although there is a clear benefit in doing so. Insulting their deities will lead to a bigger evil than its benefit, for the idolators might retaliate by insulting the God of the believers, Allah, none has the right to be worshipped but He. `Ali bin Abi Talhah said that Ibn `Abbas commented on this Ayah 6:108; "They (disbelievers) said, `O Muhammad! You will stop insulting our gods, or we will insult your Lord.' Thereafter, Allah prohibited the believers from insulting the disbelievers' idols,
فَيَسُبُّواْ اللَّهَ عَدْواً بِغَيْرِ عِلْمٍ
(lest they insult Allah wrongfully without knowledge.)" `Abdur-Razzaq narrated that Ma`mar said that Qatadah said, "Muslims used to insult the idols of the disbelievers and the disbelievers would retaliate by insulting Allah wrongfully without knowledge. Allah revealed,
وَلاَ تَسُبُّواْ الَّذِينَ يَدْعُونَ مِن دُونِ اللَّهِ
(And insult not those whom they worship besides Allah.)" On this same subject -- abandoning what carries benefit to avert a greater evil - it is recorded in the Sahih that the Messenger of Allah ﷺ said,