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.'" (ES)
English reference (ES): Vol. 1, Book 5, Hadith 1312 (ES)
Arabic reference (ES): Book 5, Hadith 1373 (ES)