Sayyidina Najiyah Khuza’i (RA) narrated that he said, “0 Messenger of Allah! How should I treat the hadi that is on the point of death?” He said, “Slaughter it and dip its shoes with which it is garlanded in its blood. After that leave it among the people that they may eat it.”
[Ahmed18965, Abu Dawud 1762, Ibn e Majah 3106]