"The Messenger of Allah came to a man who was being supported by two others and said: 'What is the matter with him?' It was said: 'He vowed to walk to the Ka'bah.' He said: 'Allah does not benefit from his torturing himself.' And he told him to ride."
أَتَى رَسُولُ اللَّهِ ﷺ عَلَى رَجُلٍ يُهَادَى بَيْنَ ابْنَيْهِ فَقَالَ مَا شَأْنُ هَذَا فَقِيلَ نَذَرَ أَنْ يَمْشِيَ إِلَى الْكَعْبَةِ فَقَالَ إِنَّ اللَّهَ لاَ يَصْنَعُ بِتَعْذِيبِ هَذَا نَفْسَهُ شَيْئًا فَأَمَرَهُ أَنْ يَرْكَبَ