Abu Hurairah reported,

The Prophet ﷺ, whenever he went out for the Eid prayer, would return by a different route than the one he had taken.

Ibn Majah 1301

Sahih

حدثنا محمد بن حميد حدثنا أبو تميلة عن فليح بن سليمان عن سعيد بن الحارث الزرقي

عن أبي هريرة

أن النبي ﷺ كان إذا خرج إلى العيد رجع في غير الطريق الذي أخذ فيه

ابن ماجه 1301صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Going to Eid by one route and returning by another
Numbering
Darussalam 1301
Ibn Majah 1301