Sunan Abi Dawud, Book 22, Hadith 54 (Abu Dawud 3296)

Narrated Abdullah ibn Abbas:

A man came to Prophet (ﷺ) and said: Messenger of Allah, my sister has taken a vow to perform hajj on foot. The Prophet (ﷺ) said: Allah gets no good from the affliction your sister imposed on herself, so let her perform hajj riding and make atonement for her oath.