Yahya bin Sa'id (may Allah have mercy on him) states: I was under an obligation to walk, then I was afflicted with a pain in my side, so I rode. When I came to Makkah, I asked Ata bin Abi Rabah (may Allah have mercy on him) and others, and they said: You owe a sacrificial animal. When I came to Madinah and asked them, they said: I should walk again from the place where I had become unable to walk. So I walked again from there.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النذور / 20131