Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:5:1In the name of Allah, the Entirely Merciful, the Especially Merciful.

O you who have believed, fulfill ˹all˺ contracts. Lawful for you are the animals of grazing livestock except for that which is recited to you ˹in this Qur'an˺ - hunting not being permitted while you are in the state of ihram. Indeed, Allah ordains what He intends.  

O you who believe, fulfil your bonds, the covenants confirmed between you and God and ˹between you and other˺ people. Lawful to you is the beast of the flocks, camels, cattle, and sheep ˹and goats˺, to eat after slaughtering ˹them˺, except that which is now being recited to you, as forbidden in ˹the verse below˺ Forbidden to you are carrion…˹Q. 5:3˺; the exceptive clause here is a discontinuous one, but may also be continuous; the forbidding concerns that which has succumbed to death and the like; game not being lawful to you when you are on pilgrimage (hurum means muhrimūn; ghayra, ‘not’, is in the accusative as ˹it introduces˺ a circumstantial qualifier referring to the subject of the pronoun lakum, ‘to you’). Verily, God decrees whatever He desires, in the way of making ˹things˺ lawful or otherwise, and there can be no objection thereto.
القرآن:٥:١بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ

يَا أَيُّهَا الَّذِينَ آمَنُوا أَوْفُوا بِالْعُقُودِ ۚ أُحِلَّتْ لَكُمْ بَهِيمَةُ الْأَنْعَامِ إِلَّا مَا يُتْلَىٰ عَلَيْكُمْ غَيْرَ مُحِلِّي الصَّيْدِ وَأَنْتُمْ حُرُمٌ ۗ إِنَّ اللَّهَ يَحْكُمُ مَا يُرِيدُ  

{يا أيها الذين آمنوا أوفوا بالعقود} العهود المؤكدة التي بينكم وبين الله والناس {أحلت لكم بهيمة الأنعام} الإبل والبقر والغنم أكلاً بعد الذبح {إلا ما يتلى عليكم} تحريمه في (حُرمت عليكم الميتة) الآية فالاستثناء منقطع ويجوز أن يكون متصلا والتحريم لما عرض من الموت ونحوه {غيرَ محلي الصيد وأنتم حرم} أي محرمون ونصب غير على الحال من ضمير لكم {إن الله يحكم ما يريد} من التحليل وغيره لا اعترض عليه.