He who slaughtered the animal before prayer should slaughter (another animal as a sacrifice). The rest of the hadith is the same.
Sahih Muslim Book 35, Hadith 17