Sahih al-Bukhari 1865
Sahih al-Bukhari · Book 28: Penalty of Hunting while on Pilgrimage · Whoever vowed to go on foot to the Ka'bah
Narrated Anas:
حَدَّثَنَا ابْنُ سَلاَمٍ ، أَخْبَرَنَا الْفَزَارِيُّ ، عَنْ حُمَيْدٍ الطَّوِيلِ ، قَالَ حَدَّثَنِي ثَابِتٌ ، عَنْ أَنَسٍ ـ رضى الله عنه ـ أَنَّ النَّبِيَّ صلى الله عليه وسلم رَأَى شَيْخًا يُهَادَى بَيْنَ ابْنَيْهِ قَالَ " مَا بَالُ هَذَا ". قَالُوا نَذَرَ أَنْ يَمْشِيَ. قَالَ " إِنَّ اللَّهَ عَنْ تَعْذِيبِ هَذَا نَفْسَهُ لَغَنِيٌّ ". وَأَمَرَهُ أَنْ يَرْكَبَ.
The Prophet (ﷺ) saw an old man walking, supported by his two sons, and asked about him. The people informed him that he had vowed to go on foot (to the Ka`ba). He said, "Allah is not in need of this old man's torturing himself," and ordered him to ride.