(4) باب مَنْ نَذَرَ أَنْ يَمْشِيَ إِلَى الْكَعْبَةِ
'Uqba b. Amir reported:
My sister took a vow that she would walk bare foot to the house of Allah (Ka'ba). She asked me to inquire from Allah's Messenger (ﷺ) about it. I sought his decision and he said: She should walk on foot and ride also.
Reference: Sahih Muslim 1644 a
In-book reference: Book 26, Hadith 16
USC-MSA web (English) reference(deprecated numbering scheme): Book 14, Hadith 4032