It wasnarrated that Ibn 'Umar said:
"Two 'Eid came together at thetime of the Messenger of Allah (ﷺ), so he led the people in prayer,then he said: 'Whoever wishes to come to Friday (prayer), let himcome, and whoever wishes to stay behind, let him stay behind.'"
English reference: Vol. 1, Book 5, Hadith 1312
Arabic reference: Book 5, Hadith 1373