“The Messenger of Allah — may Allah’s peace and blessings be upon him — would go out for ʿĪd walking, and return walking.”
Narrated by Ibn Mājah (No. 1295), and by al-Ṭabarānī in al-Awsaṭ (No. 2867) and al-Kabīr (No. 13382), from the ḥadīth of Ibn ʿUmar, may Allah be pleased with them both.
Also narrated by al-Tirmidhī (No. 530) from the ḥadīth of ʿAlī, may Allah be pleased with him, with the wording: “It is from the Sunnah to go out for ʿĪd walking…”
Authenticated in Ṣaḥīḥ al-Jāmi‘ (No. 4932) and Ṣaḥīḥ Ibn Mājah (No. 1071).
Brief Explanation of the Hadith
The Prophet — may Allah’s peace and blessings be upon him — was keen to honor and manifest the rites of Allah before his Companions so that they would follow his example. Among these is going out for the ʿĪd prayer walking, and returning walking. This indicates humility and points to the great reward associated with the many steps taken in going to and returning from the place of worship.
From this ḥadīth, scholars have derived the recommendation to walk to the ʿĪd prayer for those who are able, in emulation of the Prophet — may Allah’s peace and blessings be upon him — and because it is closer to humility and devotion. However, there is no sin for one who rides, especially when there is a need.