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.
Sahih Bukhari, Volume 3, Book 29, Number 88