1064 صحيح حديث أَنَسٍ رضي الله عنه، أَنَّ النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ رَأَى شَيْخًا يُهَادَى بَيْنَ ابْنَيْهِ، قَالَ: مَا بَالُ هذَا قَالُوا: نَذَرَ أَنْ يَمْشِيَ؛ قَالَ: إِنَّ اللهَ عَنْ تَعْذِيبِ هذَا نَفْسَهُ لَغَنِيٌّ وَأَمَرَهُ أَنْ يَرْكَبَ
Hazrat Anas (may Allah be pleased with him) narrated that the Prophet Muhammad (peace and blessings be upon him) saw an old man walking with the support of his two sons. The Prophet (peace be upon him) asked, "What is the matter with this man?" The people informed him that he had vowed to walk to the Ka'bah on foot. The Prophet (peace be upon him) said, "Allah is free from needing this man to put himself in hardship." The Prophet (peace be upon him) ordered him to ride.
1065 صحيح حديث عُقْبَةَ بْنِ عَامِرٍ، قَالَ: نَذَرَتْ أُخْتِي أَنْ تَمْشِيَ إِلَى بَيْتِ اللهِ، وَأَمَرَتْنِي أَنْ أَسْتَفْتِيَ لَهَا النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ ، فَاسْتَفْتَيْتُهُ فَقَالَ عَلَيْهِ السَّلاَمُ: لِتَمْشِ وَلْتَرْكَبْ
Hazrat Uqbah bin Aamir (may Allah be pleased with him) narrates that my sister had made a vow to go to the House of Allah on foot. Then she asked me to inquire about it from the Messenger of Allah (peace and blessings of Allah be upon him). So I asked the Prophet (peace and blessings of Allah be upon him), and he said: She should walk and also ride.