Language:
كتاب جزاء الصيد
28  
Penalty of Hunting while on Pilgrimage
(27)
Chapter: Whoever vowed to go on foot to the Ka'bah
(27)
باب مَنْ نَذَرَ الْمَشْىَ إِلَى الْكَعْبَةِ
Sahih al-Bukhari 1865

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.

حَدَّثَنَا ابْنُ سَلاَمٍ، أَخْبَرَنَا الْفَزَارِيُّ، عَنْ حُمَيْدٍ الطَّوِيلِ، قَالَ حَدَّثَنِي ثَابِتٌ، عَنْ أَنَسٍ ـ رضى الله عنه ـ أَنَّ النَّبِيَّ صلى الله عليه وسلم رَأَى شَيْخًا يُهَادَى بَيْنَ ابْنَيْهِ قَالَ ‏"‏ مَا بَالُ هَذَا ‏"‏‏.‏ قَالُوا نَذَرَ أَنْ يَمْشِيَ‏.‏ قَالَ ‏"‏ إِنَّ اللَّهَ عَنْ تَعْذِيبِ هَذَا نَفْسَهُ لَغَنِيٌّ ‏"‏‏.‏ وَأَمَرَهُ أَنْ يَرْكَبَ‏.‏
Reference : Sahih al-Bukhari 1865
In-book reference : Book 28, Hadith 45
USC-MSA web (English) reference : Vol. 3, Book 29, Hadith 88
  (deprecated numbering scheme)