It was narrated from Abu Hurairah that when the Prophet ﷺ went out to ‘Eid (prayers), he would return via another route than the first one he took. (Using translation from Ibn Mājah 1301)
«أَنَّ النَّبِيَّ ﷺ كَانَ إِذَا خَرَجَ إِلَى الْعِيدِ رَجَعَ فِي طَرِيقٍ آخَرَ»