Al-Kāfi

Hadith 866
vow
21- عَلِيُّ بْنُ إِبْرَاهِيمَ عَنْ أَبِيهِ عَنْ حَمَّادٍ عَنْ حَرِيزٍ عَنْ مُحَمَّدِ بْنِ مُسْلِمٍ قَالَ سَأَلْتُ أَبَا جَعْفَرٍ (عَلَيْهِ السَّلام) عَنْ رَجُلٍ جَعَلَ عَلَيْهِ الْمَشْيَ إِلَى بَيْتِ اللهِ فَلَمْ يَسْتَطِعْ قَالَ فَلْيَحُجَّ رَاكِباً.
21. Ali ibn Ibrahim has narrated from his father from Hammad from Hariz from Muhammad ibn Muslim who has narrated the following: “I once asked abu Ja‘far (a.s.), about the case of a man who makes a vow and commitment to walk to the House of Allah but cannot do so. He (the Imam) said, ‘He must perform al-Hajj riding.’”
Source: Shaykh Muḥammad b. Yaʿqūb al-Kulaynī