Muwatta Malik, Book 20, Hadith 160 (Muwatta Malik 894)
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."