Anas bin Malik reported,

And Ibn Abu Umar narrated to us, and the wording is his, Marwan bin Muawiya al-Fazari narrated to us, Humayd narrated to us, Thabit told me, from Anas, that the Prophet ﷺ saw an old man being supported between his two sons.He asked, "What is the matter with this man?"They replied, "He vowed to walk."He said, "Allah has no need for this man to torment himself," and he ordered him to ride.

Muslim 4247

Sahih

حدثنا يحيى بن يحيى التميمي أخبرنا يزيد بن زريع عن حميد عن ثابت

عن أنس

ح و حدثنا ابن أبي عمر واللفظ له حدثنا مروان بن معاوية الفزاري حدثنا حميد حدثني ثابت عن أنس أن النبي ﷺ رأى شيخا يهادى بين ابنيه فقال ما بال هذا قالوا نذر أن يمشي قال إن الله عن تعذيب هذا نفسه لغني وأمره أن يركب

مسلم 4247صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Vows
Chapter
One who vowed to walk to the Kaaba
Numbering
Darussalam 4247
Muslim 4247