Abdullah bin Umar reported,

Two Eids fell on the same day during the time of the Messenger of Allah ﷺ. He led the people in prayer, then said, "Whoever wishes to attend the Friday prayer may attend, and whoever wishes to stay back may stay back."

Ibn Majah 1312

Hasan

حدثنا جبارة بن المغلس حدثنا مندل بن علي عن عبد العزيز بن عمر عن نافع

عن ابن عمر قال

اجتمع عيدان على عهد رسول الله ﷺ فصلى بالناس ثم قال من شاء أن يأتي الجمعة فليأتها ومن شاء أن يتخلف فليتخلف

ابن ماجه 1312حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
What happens when the two Eids occur on the same day
Numbering
Darussalam 1312
Ibn Majah 1312