My sister vowed to go on foot to the Kaʿba, and she asked me to take the verdict of the Prophet ﷺ about it. So, I did and the Prophet ﷺ said, "She should walk and also should ride." Narrated Abul-Khair from ʿUqba as above.:
نَذَرَتْ أُخْتِي أَنْ تَمْشِيَ إِلَى بَيْتِ اللَّهِ وَأَمَرَتْنِي أَنْ أَسْتَفْتِيَ لَهَا النَّبِيَّ ﷺ فَاسْتَفْتَيْتُهُ فَقَالَ عَلَيْهِ السَّلاَمُ لِتَمْشِ وَلْتَرْكَبْ قَالَ وَكَانَ أَبُو الْخَيْرِ لاَ يُفَارِقُ عُقْبَةَ