The sister of Uqbah ibn Amir took a vow that she would perform hajj on foot, and she was unable to do so. The Prophet ﷺ said: Allah is not in need of the walking of your sister. She must ride and offer a sacrificial camel. (Using translation from Abū Dāʾūd 3303)
رَسُولُ اللهِ ﷺ إِنَّ اللهَ لَغَنِيٌّ عَنْ مَشْيِهَا لِتَرْكَبْ وَلْتُهْدِ بَدَنَةً