Sahih Muslim 1642
Anas reported that Allah's Apostle ﷺ saw an old man being supported between his two sons. He (the Holy Prophet) said: What is the matter with him? They said: He had taken the vow to walk (on foot to the Ka'ba). Thereupon he (Allah's Apoitle) said: Allah is indifferent to his inflicting upon himself chastisement, and he commanded him to ride.
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى التَّمِيمِيُّ، أَخْبَرَنَا يَزِيدُ بْنُ زُرَيْعٍ، عَنْ حُمَيْدٍ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، ح. وَحَدَّثَنَا ابْنُ أَبِي عُمَرَ، - وَاللَّفْظُ لَهُ - حَدَّثَنَا مَرْوَانُ بْنُ مُعَاوِيَةَ الْفَزَارِيُّ، حَدَّثَنَا حُمَيْدٌ، حَدَّثَنِي ثَابِتٌ، عَنْ أَنَسٍ، أَنَّ النَّبِيَّ ﷺ رَأَىَ شَيْخًا يُهَادَى بَيْنَ ابْنَيْهِ فَقَالَ " مَا بَالُ هَذَا " . قَالُوا نَذَرَ أَنْ يَمْشِيَ . قَالَ " إِنَّ اللَّهَ عَنْ تَعْذِيبِ هَذَا نَفْسَهُ لَغَنِيٌّ " . وَأَمَرَهُ أَنْ يَرْكَبَ .