“If any of them becomes unfit and you are afraid that it will die, then slaughter it, dip the sandal (tied around its neck) in its blood and place it on its side, but neither you nor any of your companions should eat anything from it.”
Sunan Ibn Majah Book 25, Hadith 224