Sahih Muslim, Book 32, Hadith 45 (Muslim 4523)

Ibn Shihab reported:

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.