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