Narrated 'Uqba bin 'Aamir (RA):
His sister took a vow to walk to Allah's House (for pilgrimage) barefooted. Then, she ordered him to consult Allah's Messenger (ﷺ), so he consulted him for a religious verdict and the Prophet (ﷺ) replied, "Let her walk and ride." [Agreed upon, and the wording is Muslim's].
Reference: Bulugh al-Maram 1389
In-book reference: Book 13, Hadith 16
English translation: Book 13, Hadith 1389