Sunan an-Nasa'i #1571
The Book of the Prayer for the Two 'Eids 19:16
It was narrated from 'Abdullah bin As-SA'ib that:
The Prophet (ﷺ) offered the 'Eid prayer and said: 'Whoever would like to leave, let him leave, and whoever would like to stay for the Khutbah, let him stay."