118فَكُلُوا۟ مِمَّا ذُكِرَ ٱسْمُ ٱللَّهِ عَلَيْهِ إِن كُنتُم بِـَٔايَـٰتِهِۦ مُؤْمِنِينَ
119وَمَا لَكُمْ أَلَّا تَأْكُلُوا۟ مِمَّا ذُكِرَ ٱسْمُ ٱللَّهِ عَلَيْهِ وَقَدْ فَصَّلَ لَكُم مَّا حَرَّمَ عَلَيْكُمْ إِلَّا مَا ٱضْطُرِرْتُمْ إِلَيْهِ ۗ وَإِنَّ كَثِيرًا لَّيُضِلُّونَ بِأَهْوَآئِهِم بِغَيْرِ عِلْمٍ ۗ إِنَّ رَبَّكَ هُوَ أَعْلَمُ بِٱلْمُعْتَدِينَ
[118-119] Then you should eat the flesh of the animal over which Allah's name has been mentioned, if you sincerely believe in His Revelations.84 And why should you not eat that thing over which Allah's name has been mentioned when He has already given you explicit knowledge of those things which He has forbidden for you, except in a case of extreme helplessness?85 as As regards the majority of the people, they, following their caprices, say misleading things without any knowledge. Your Lord best knows these transgressors.
84Among the many wrong things which the people have adopted as religious laws without any Divine sanction are also the restrictions they have imposed on the articles of food. That is why some people have made certain things lawful whereas they are unlawful in the sight of God, and certain other things unlawful, though Allah has declared them to be lawful. In this connection, the most absurd thing on which some of the former people insisted and on which some of the modern people also insist, is that if Allah's name is pronounced at the slaughter of an animal, it is unlawful and if it is slaughtered without mentioning Allah's name over it, it is quite lawful. In this verse Allah has refuted such ideas and commanded the Muslims to discard all such whims and superstitions which have been invented by the unbelievers and the mushrikin and break all such restrictions which the people have imposed on themselves against the Guidance of Allah, if they sincerely believe in it. They should, therefore, make unlawful only that which Allah has made unlawful and vice versa.
85Please see vv. 114-116, An-Nahl. Incidentally, this reference also shows that Surah An-Nahl was revealed before Al-Anam.