It was narrated from Ibn ‘Umar that he used to go out to the ‘Eid prayers via one route, and return via another, and he said that the Messenger of Allah (ﷺ) used to do that.
Hadith Referenceسنن ابن ماجه / كتاب إقامة الصلاة والسنة / 1299
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:إسناده حسن
Narrated Abdullah ibn Umar: The Messenger of Allah ﷺ went out by one road on the day of the Eid (festival) and returned by another.
Shaykh Umar Farooq Saeedi
1156. Commentary: This act is recommended (mustahabb), as it is narrated in Sahih Bukhari from Jabir bin Abdullah radi Allahu anhu, who states that when it was the day of Eid, the Prophet sallallahu alayhi wa sallam would change his route (when coming and going). [صحيح بخاري۔ حديث : 986]
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 1156