Declaring the lawful forbidden and the forbidden lawful is a type of shirk:
Islam has strongly condemned those who make themselves the complete authorities and masters over making things lawful and unlawful. In particular, it has severely taken to task those who make the lawful unlawful, because as a result man falls into needless hardship and difficulty, and eventually a tendency toward a religiosity of ta’ammuq (harshness and extremism) arises, whereas the Prophet ﷺ firmly suppressed the tendency toward ta’miq and extremism and strongly condemned those who adopt such an attitude. He ﷺ said:
ألا هلك المتنطعون، ألا هلك المتنطعون، ألا هلك المتنطعون
Beware! Those who create extremism and harshness in the religion are destroyed. Beware! Those who create extremism and harshness in the religion are destroyed. Beware! Those who create extremism and harshness in the religion are destroyed.
And he described the distinguishing feature of the message of Muhammad ﷺ:
بعثت بالحنيفية السمحة
I have been sent with a religion that is both hanif (upright) and broad and spacious.
Thus this religion is hanif (upright) in matters of belief and tawhid, and broad in matters of law and deeds. Acts such as shirk, kufr and making the lawful unlawful are completely opposed to it. In a hadith the Prophet ﷺ says that Allah, Blessed and Exalted, says:
إني خلقت عبادي حنفاء وإنهم أتتهم الشياطين فاجتالتهم عن دينهم وحرمت عليهم ما أحللت لهم وأمرتهم أن لا يشركوا بي ما لم أنزل به سلطانا
I created My servants upon the upright religion, but the devils came to them and led them astray from their religion, and made unlawful for them what I had made lawful for them, and commanded them to associate with Me partners for which I sent down no authority.
From this it is clear that making the lawful unlawful is of the nature of shirk. For this reason the Qur’an strongly rebuked the Arab polytheists for their shirk of idol worship and for making unlawful for themselves pure things such as crops and livestock. The Bahirah, Sa’ibah, Wasilah and Ham were livestock that they themselves had declared unlawful. When a she-camel had given birth to five young and the last one was male, these polytheists would cut off the ears of that she-camel, declare riding it forbidden, and leave it for their gods. Then slaughtering it and using it to carry loads all became forbidden, and it could not even be driven away from a watering place or a pasture. They named it Bahirah, meaning a she-camel with cut ears.
Similarly, Sa’ibah was the name for a she-camel that a person would set free in the name of his gods upon returning from a journey or recovering from an illness.
If a goat gave birth to a female, they considered it their own right, and if it gave birth to a male, it was the right of their gods, and if it gave birth to both male and female, then instead of slaughtering the male for their gods, they would leave it free and name it Wasilah. Similarly, with a camel whose offspring’s offspring had become fit to carry loads, they would declare riding and loading that old camel forbidden and name it Ham. The Noble Qur’an declared this prohibition a munkar (an act of disobedience and sin) and left no room for following one’s forefathers in such misguidance. He said:
مَا جَعَلَ اللَّهُ مِنْ بَحِيرَةٍ وَلَا سَائِبَةٍ وَلَا وَصِيلَةٍ وَلَا حَامٍ ۙ وَلَٰكِنَّ الَّذِينَ كَفَرُوا يَفْتَرُونَ عَلَى اللَّهِ الْكَذِبَ ۖ وَأَكْثَرُهُمْ لَا يَعْقِلُونَ 103 وَإِذَا قِيلَ لَهُمْ تَعَالَوْا إِلَىٰ مَا أَنْزَلَ اللَّهُ وَإِلَى الرَّسُولِ قَالُوا حَسْبُنَا مَا وَجَدْنَا عَلَيْهِ آبَاءَنَا ۚ أَوَلَوْ كَانَ آبَاؤُهُمْ لَا يَعْلَمُونَ شَيْئًا وَلَا يَهْتَدُونَ
Allah has not appointed any Bahirah, nor Sa’ibah, nor Wasilah, nor Ham. These disbelievers fabricate a lie against Allah. And most of them have no sense. When they are invited: Come to what Allah has sent down and to the Messenger, they say: The way on which we found our fathers is sufficient for us. Will they follow their fathers even if their fathers knew nothing and were not guided?
In Surat al-A’raf, mentioning what is truly forbidden, He said:
قُلْ مَنْ حَرَّمَ زِينَةَ اللَّهِ الَّتِي أَخْرَجَ لِعِبَادِهِ وَالطَّيِّبَاتِ مِنَ الرِّزْقِ
Say: Who has forbidden the adornment of Allah which He has produced for His servants, and the pure things of provision?
قُلْ إِنَّمَا حَرَّمَ رَبِّيَ الْفَوَاحِشَ مَا ظَهَرَ مِنْهَا وَمَا بَطَنَ وَالْإِثْمَ وَالْبَغْيَ بِغَيْرِ الْحَقِّ ۖ وَأَنْ تُشْرِكُوا بِاللَّهِ مَا لَمْ يُنَزِّلْ بِهِ سُلْطَانًا وَأَنْ تَقُولُوا عَلَى اللَّهِ مَا لَا تَعْلَمُونَ
Say: What my Lord has forbidden are only these: shameful deeds, whether open or hidden, sin, unjust oppression, that you associate with Allah that for which He has not sent down any authority, and that you say about Allah, attributing it to Him, what you do not know.
This discussion of making things lawful and unlawful appears in the Makkan surahs, which is evidence that in the view of the Qur’an this issue is not one of branches and details but of fundamentals and general principles.
In Madinah there were some Muslims in whom a tendency toward harshness and toward making the tayyibat (pure things) unlawful for themselves had arisen. On this occasion Allah, the Exalted, sent down clear and definitive verses guiding them to remain within the limits of Allah and on the straight path:
يَا أَيُّهَا الَّذِينَ آمَنُوا لَا تُحَرِّمُوا طَيِّبَاتِ مَا أَحَلَّ اللَّهُ لَكُمْ وَلَا تَعْتَدُوا ۚ إِنَّ اللَّهَ لَا يُحِبُّ الْمُعْتَدِينَ 87 وَكُلُوا مِمَّا رَزَقَكُمُ اللَّهُ حَلَالًا طَيِّبًا ۚ وَاتَّقُوا اللَّهَ الَّذِي أَنْتُمْ بِهِ مُؤْمِنُونَ
O you who believe! Do not make unlawful the pure things which Allah has made lawful for you, and do not transgress. Know for certain that Allah does not like those who transgress. Eat of the lawful and pure provision that Allah has granted you, and fear that Allah in whom you believe.