Shaikh Ibn ul-‘Uthaymeen rahimahullah said:
“The established principle:
الوسائل لها أحكام المقاصد
‘The Means have the Ruling of the Purpose’
So if the means are legislated then they are legislated. If the means are not legislated then they are not legislated. Rather a haram means is haram. If the means to good is evil, then it is evil. Listen to the statement of Allah, the Exalted:
وَلَا تَسُبُّوا الَّذِينَ يَدْعُونَ مِنْ دُونِ اللَّهِ فَيَسُبُّوا اللَّهَ عَدْوًا بِغَيْرِ عِلْمٍ
And insult not those whom they (disbelievers) worship besides Allah, lest they insult Allah wrongfully without knowledge.
[6:108]
Cursing the idols of the polytheists is not out of insult, rather truth in its place. However, cursing the Lord of the Worlds is out of insult and transgression and oppression. So like this, cursing the gods of the polytheists is praiseworthy but gives rise to the cursing of Allah which is prohibited, (and) unlawful. So this is evidence that the means have the ruling of the purpose”
[Majmoo’ al-Fatawa wa Rasaail (5/251)]
Translated by
Faisal Ibn Abdul Qaadir Ibn Hassan
Abu Sualymaan