It reached me through Ibn Umar that Allah's Messenger (ﷺ) gave a share of spoils to the troop. The rest of the hadith is the same.
Sahih Muslim Book 32, Hadith 45