Muwatta Malik, Book 20, Hadith 860 (In-Book)

Yahya related to me from Malik that Ibn Shihab said, "If someone dedicates an animal as compensation, or for a vow, or as the sacrifice for tamattu, and misfortune befalls it on the road, he must provide a substitute."

وَحَدَّثَنِي عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، أَنَّهُ قَالَ مَنْ أَهْدَى بَدَنَةً جَزَاءً أَوْ نَذْرًا أَوْ هَدْىَ تَمَتُّعٍ فَأُصِيبَتْ فِي الطَّرِيقِ فَعَلَيْهِ الْبَدَلُ ‏.‏

sunnah.com

also referenced under: Book 20, Hadith 157 (USC-MSA)