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)
«كَانَ النَّبِيُّ ﷺ كَانَ إِذَا خَرَجَ إِلَى الْعِيدَيْنِ رَجَعَ فِي غَيْرِ الطَّرِيقِ الَّذِي خَرَجَ فِيهِ»