Slaughtering animals at graves is forbidden
It is narrated from Anas (may Allah be pleased with him) that the Prophet ﷺ said:
لا عقر فى الإسلام
“There is no ‘aqr (that is, slaughtering at a grave) in Islam.”
Imam Abd al-Razzaq said that (in the Jahiliyyah) people used to slaughter a cow or a goat at the grave. (This is called ‘aqr.)
Reference: صحيح: صحيح Sunan Abi Dawud: 2759 , كتاب الجنائز: باب كراهية الذبح عند القبر , أحمد: 140/3 , Sunan Abi Dawud: 3222
(Ibn Taymiyyah, may Allah have mercy on him) Slaughtering at graves is absolutely prohibited.
Reference: اقتضاء الصراط المستقيم: ص/182
(al-Nawawi, may Allah have mercy on him) Slaughtering at graves is a blameworthy act.
Reference: المجموع: 320/5