Whoever missed the Eid prayer should offer two Rak‘a prayer
باب إِذَا فَاتَهُ الْعِيدُ يُصَلِّي رَكْعَتَيْنِ
Sahih al-Bukhari, Book of The Two Festivals (Eids)(view book)
وَقَالَ عِكْرِمَةُ أَهْلُ السَّوَادِ يَجْتَمِعُونَ فِي الْعِيدِ يُصَلُّونَ رَكْعَتَيْنِ كَمَا يَصْنَعُ الإِمَامُ.
وَقَالَ عَطَاءٌ إِذَا فَاتَهُ الْعِيدُ صَلَّى رَكْعَتَيْنِ.
Sahih al-Bukhari 987
Narrated 'Urwa on the authority of 'Aisha:
On the days of Mina, (11th, 12th, and 13th of Dhul-Hijjah) Abu Bakr came to her while two young girls were beating the tambourine and the Prophet was lying covered with his clothes. Abu Bakr scolded them and the Prophet uncovered his face and said to Abu Bakr, "Leave them, for these days are the days of 'Id and the days of Mina." 'Aisha further said, "Once the Prophet was screening me and I was watching the display of black slaves in the Mosque and ('Umar) scolded them. The Prophet ﷺ said, 'Leave them. O Bani Arfida! (carry on), you are safe (protected)'."
حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ، قَالَ حَدَّثَنَا اللَّيْثُ، عَنْ عُقَيْلٍ، عَنِ ابْنِ شِهَابٍ، عَنْ عُرْوَةَ، عَنْ عَائِشَةَ، أَنَّ أَبَا بَكْرٍ ـ رضى الله عنه ـ دَخَلَ عَلَيْهَا وَعِنْدَهَا جَارِيَتَانِ فِي أَيَّامِ مِنًى تُدَفِّفَانِ وَتَضْرِبَانِ، وَالنَّبِيُّ ﷺ مُتَغَشٍّ بِثَوْبِهِ، فَانْتَهَرَهُمَا أَبُو بَكْرٍ فَكَشَفَ النَّبِيُّ ﷺ عَنْ وَجْهِهِ فَقَالَ " دَعْهُمَا يَا أَبَا بَكْرٍ فَإِنَّهَا أَيَّامُ عِيدٍ ". وَتِلْكَ الأَيَّامُ أَيَّامُ مِنًى. وَقَالَتْ عَائِشَةُ رَأَيْتُ النَّبِيَّ ﷺ يَسْتُرُنِي، وَأَنَا أَنْظُرُ إِلَى الْحَبَشَةِ وَهُمْ يَلْعَبُونَ فِي الْمَسْجِدِ، فَزَجَرَهُمْ عُمَرُ فَقَالَ النَّبِيُّ ﷺ " دَعْهُمْ، أَمْنًا بَنِي أَرْفِدَةَ ". يَعْنِي مِنَ الأَمْنِ.