حَدَّثَنَا إِسْمَاعِيلُ بْنُ إِبْرَاهِيمَ أَبُو مَعْمَرٍ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ الْمُبَارَكِ، عَنْ يُونُسَ، عَنِ الزُّهْرِيِّ، عَنْ أَبِي سَلَمَةَ، عَنْ عَائِشَةَ، رضى الله عنها أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ ‏:‏ ‏"‏ لاَ نَذْرَ فِي مَعْصِيَةٍ، وَكَفَّارَتُهُ كَفَّارَةُ يَمِينٍ ‏"‏ ‏.‏
Translation
Narrated Anas b. Malik

The Messenger of Allah (ﷺ) saw a man that he was supported between his sons. He asked about him, and (the people) said: He has taken a vow to walk (on foot). Thereupon he said: Allah has no need that this man should punish himself, and he ordered him to ride.

Abu Dawud said: 'Amr b. Abi 'Amir has also narrated a similar tradition from al-A'raj on the authority of Abu Hurairah from the Prophet (ﷺ).