Sahih Muslim Book 7, Hadith Number 3056.
Chapter : What should be done with the sacrificial animal, when it is completely exhausted and becomes powerless to move.
Ibn Abbas (Allah be pleased with them) reported that Dhuwaib, father of Qabisa (Allah be pleased with him) narrated to him that Allah’s Messenger (may peace be upon him) sent under his charge the sacrificial camels, and said: If any of these is completely exhausted and you apprehend its death, then slaughter it, then dip its hoofs in its blood and imprint it on its hump; but neither you nor any one of your comrades should eat it.