In the name of Allah, Most Gracious, Most Merciful.
Jabir (May Allah be pleased with him) reported: On the occasion of the ‘Eid, the Prophet (May Allah exalt his mention and protect him from imperfection) would proceed to the prayer place taking one route and returning from another. (Al-Bukhari and Muslim).
Commentary: The ‘Ulama’ say that there are many subtle points of wisdom in changing the way. According to Imam An-Nawawi, this causes an increase in the places of worship. Some say that both ways will bear witness on the Day of Reckoning, that he had passed through them in a state of worship. This may also be the object that instead of one way, the needy on two ways should benefit from alms and charity.
Riyaadiss-Saliheen (The Meadows of the Righteous)
By Imam An Nawawi
Chapter 98, Page 232, No 719