Al-Hajj 22:37
لَن يَنَالَ ٱللَّهَ لُحُومُهَا وَلَا دِمَآؤُهَا وَلَـٰكِن يَنَالُهُ ٱلتَّقْوَىٰ مِنكُمْ ۚ كَذَٰلِكَ سَخَّرَهَا لَكُمْ لِتُكَبِّرُوا۟ ٱللَّهَ عَلَىٰ مَا هَدَىٰكُمْ ۗ وَبَشِّرِ ٱلْمُحْسِنِينَ
Lan yanala Allaha luhoomuhawala dimaoha walakin yanaluhuattaqwa minkum kathalika sakhkharahalakum litukabbiroo Allaha AAala ma hadakumwabashshiri almuhsineen
Their meat will not reach Allāh, nor will their blood, but what reaches Him is piety from you. Thus have We subjected them to you that you may glorify Allāh for that [to] which He has guided you; and give good tidings to the doers of good.
It is neither their flesh nor their blood that reaches Allah, but what does reach Him is the taqwā (the sense of obedience) on your part. Thus He has made them (the animals) subjugated to you, so that you proclaim Allah’s glory for the guidance He gave you. And give good news to those who are good in their deeds.