My sister took a vow that she would walk bare foot to the house of Allah (Ka'ba). She asked me to inquire from Messenger of Allah ﷺ about it. I sought his decision and he said: She should walk on foot and ride also.
أَنْ تَمْشِيَ إِلَى بَيْتِ اللَّهِ حَافِيَةً فَأَمَرَتْنِي أَنْ أَسْتَفْتِيَ لَهَا رَسُولَ اللَّهِ ﷺ فَاسْتَفْتَيْتُهُ فَقَالَ لِتَمْشِ وَلْتَرْكَبْ