أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، قَالَ أَنْبَأَنَا حَمَّادُ بْنُ مَسْعَدَةَ، عَنْ حُمَيْدٍ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، قَالَ رَأَى النَّبِيُّ صلى الله عليه وسلم رَجُلاً يُهَادَى بَيْنَ رَجُلَيْنِ فَقَالَ ‏"‏ مَا هَذَا ‏"‏ ‏.‏ قَالُوا نَذَرَ أَنْ يَمْشِيَ إِلَى بَيْتِ اللَّهِ ‏.‏ قَالَ ‏"‏ إِنَّ اللَّهَ غَنِيٌّ عَنْ تَعْذِيبِ هَذَا نَفْسَهُ مُرْهُ فَلْيَرْكَبْ ‏"‏ ‏.‏
Translation
It was narrated that Anas said

"The Messenger of Allah passed by an old man who was being supported between two men and said: 'What is the matter with him?' They said: 'He vowed to walk.' He said: 'Allah has no need for him to torture himself. Tell him to ride.'" So he was told to ride.