It is narrated from Umar bin Abdul Aziz (may Allah have mercy on him) that during the time of the Prophet ﷺ, Friday and Eid coincided (on the same day. The Prophet ﷺ said to the people living in the elevated areas around Madinah: "If anyone wishes to stay at home from either of these two without any excuse, he is permitted."
Hadith Referenceمسند الإمام الشافعي / كتاب العيدين والأضاحي والاستسقاء / 500
Hadith Takhrijاسناده ضعیف ، لضعف شيخ الشافعي ولإرساله، أخرجه البيهقى فى المعرفة السنن والآثار (1955) عبدالرزاق (5729).