Mu'adh bin Sa'd or Sa'd bin Mu'adh (may Allah be pleased with him) said that a slave girl of Ka'b bin Malik (may Allah be pleased with him) used to graze goats on Mount Sal'. One of the goats was about to die, so she slaughtered it with a stone. The Messenger of Allah (peace and blessings be upon him) was asked about it, and he (peace and blessings be upon him) said: "There is no harm in eating it."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19157