(27) باب مَنْ نَذَرَ الْمَشْىَ إِلَى الْكَعْبَةِ
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(deprecated numbering scheme): Vol. 3, Book 29, Hadith 88