Imam al-Shafi'i (may Allah have mercy on him) said: "If he is able to walk, walking is binding upon him."
Our companions said: "Because walking to a place of righteousness is (in itself) righteousness." This is by inference from the saying of Allah Almighty: "They will come to you on foot." [Surah al-Hajj: 27]
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النذور / Q20105
Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) said: There was a man who would attend the prayer despite living far from the mosque. It was said to him: Buy a donkey to ride in the heat and the darkness. He said: By Allah! I would not like my house to be next to the mosque. The Prophet (peace and blessings be upon him) was informed of this. He was asked about it, and he said: O Messenger of Allah! Are not my footsteps, and my returning to my home and family and my coming, recorded (for reward)? The Messenger of Allah (peace and blessings be upon him) said: "You will receive the reward of what you intended."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النذور / 20105
Abu Musa al-Ash'ari (may Allah be pleased with him) narrates from the Prophet (peace and blessings be upon him): "The person who receives the greatest reward is the one who comes to the mosque walking from far away; and the servant who waits for the congregational prayer and then prays is more deserving of reward than the one who prays alone and then goes to sleep."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النذور / 20106
Zadhan said: During the days of his illness, Ibn Abbas (may Allah be pleased with them both) gathered his sons and said: I heard the Messenger of Allah (peace and blessings be upon him) say: "Whoever performs Hajj from Makkah on foot and returns, for every step he will receive seven hundred good deeds, and every good deed is equal to the good deeds of the Haram." It was asked: How much is a good deed of the Haram? He said: "One good deed is equal to one hundred thousand good deeds."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النذور / 20107
Nafi' (may Allah have mercy on him) narrates from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both): When a person vows that he will walk to the House of Allah, that is a vow, so let him walk there.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النذور / 20108