Allah Almighty said:
لِّيَشْهَدُوا مَنَافِعَ لَهُمْ وَيَذْكُرُوا اسْمَ اللَّهِ فِي أَيَّامٍ مَّعْلُومَاتٍ عَلَىٰ مَا رَزَقَهُم مِّن بَهِيمَةِ الْأَنْعَامِ ۖ فَكُلُوا مِنْهَا وَأَطْعِمُوا الْبَائِسَ الْفَقِيرَ ﴿٢٨﴾ ﴾ الحج﴿
So that they may witness benefits for themselves and mention the name of Allah on known days for providing them with the livestock animals. So, eat from it and feed the miserable and poor (22:28).