Muwatta Malik, Book 20, Hadith 155 (USC-MSA)

Yahya related to me from Malik from Ibn Shihab that Said ibn al- Musayyab said, "If someone dedicates an animal voluntarily and then it is injured and he kills it and gives everyone a free hand in eating it, he owes nothing. If, however, he eats some of it himself, or tells certain other people to eat it, then he owes compensation."

وَحَدَّثَنِي عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، أَنَّهُ قَالَ مَنْ سَاقَ بَدَنَةً تَطَوُّعًا فَعَطِبَتْ فَنَحَرَهَا ثُمَّ خَلَّى بَيْنَهَا وَبَيْنَ النَّاسِ يَأْكُلُونَهَا فَلَيْسَ عَلَيْهِ شَىْءٌ وَإِنْ أَكَلَ مِنْهَا أَوْ أَمَرَ مَنْ يَأْكُلُ مِنْهَا غَرِمَهَا ‏.‏

sunnah.com

also referenced under: Book 20, Hadith 858 (In-Book)