“I said: ‘O Messenger of Allah, what should I do with those sacrificial animals that become unfit?’ He said: ‘Slaughter them, dip its sandal in its blood, then place it on its side, and leave them for the people to eat.’”
Sunan Ibn Majah Book 25, Hadith 225