I witnessed the Prophet ﷺ offering the ʿId prayer (and after finishing it) he delivered a sermon and said, "Whoever has slaughtered his sacrifice (before the prayer) should make up for it (i.e. slaughter another animal) and whoever has not slaughtered his sacrifice yet, should slaughter it by mentioning Allah's Name over it."
شَهِدْتُ النَّبِيَّ ﷺ صَلَّى يَوْمَ عِيدٍ ثُمَّ خَطَبَ ثُمَّ قَالَ مَنْ ذَبَحَ فَلْيُبَدِّلْ مَكَانَهَا وَمَنْ لَمْ يَكُنْ ذَبَحَ فَلْيَذْبَحْ بِاسْمِ اللَّهِ