He who slaughtered the animal before prayer should slaughter (another animal as a sacrifice). The rest of the hadith is the same.
أَنَّ رَسُولَ اللَّهِ ﷺ صَلَّى ثُمَّ خَطَبَ فَأَمَرَ مَنْ كَانَ ذَبَحَ قَبْلَ الصَّلاَةِ أَنْ يُعِيدَ ذِبْحًا ثُمَّ ذَكَرَ بِمِثْلِ حَدِيثِ ابْنِ عُلَيَّةَ